Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Clarify Supply/Replace behavior with interface values #857

Merged
merged 1 commit into from Mar 9, 2022

Commits on Mar 9, 2022

  1. doc: Clarify Supply/Replace behavior with interface values

    Use of `fx.Replace` or `fx.Supply` with interface values can lead to
    unexpected behavior. `fx.Supply((io.Reader)(r))` will use the type of
    the implementation `r`, not `io.Reader`.
    
    This clarifies the documentation for both APIs to make this explicit.
    
    Refs GO-1253
    abhinav committed Mar 9, 2022
    Copy the full SHA
    ad74d0e View commit details
    Browse the repository at this point in the history