Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: Clarify Supply/Replace behavior with interface values (#857)
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
- Loading branch information
Showing
2 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters