Skip to content

Commit

Permalink
Merge pull request #966 from Havvy/turbofish
Browse files Browse the repository at this point in the history
Turbofish: Explain what the example is of.
  • Loading branch information
ehuss authored Feb 20, 2021
2 parents 361367c + c28dfe4 commit c0d111a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ let vec = [1, 2, 3].iter().map(|n| n * 2).collect::<Vec<_>>();
```

This `::` prefix is required to disambiguate generic paths with multiple comparisons in a comma-separate list.
See [the bastion of the turbofish][turbofish test] for an example.
See [the bastion of the turbofish][turbofish test] for an example where not having the prefix would be ambiguous.

### Uncovered type

Expand Down

0 comments on commit c0d111a

Please sign in to comment.