Skip to content

Commit

Permalink
Merge pull request #1319 from jamesreprise/patch-1
Browse files Browse the repository at this point in the history
Syntax correction for trait-bounds.md
  • Loading branch information
ehuss authored Jan 20, 2023
2 parents 2cb0ed9 + fd6e375 commit c4202a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trait-bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ provided on any type in a [where clause]. There are also shorter forms for
certain common cases:

* Bounds written after declaring a [generic parameter][generic]:
`fn f<A: Copy>() {}` is the same as `fn f<A> where A: Copy () {}`.
`fn f<A: Copy>() {}` is the same as `fn f<A>() where A: Copy {}`.
* In trait declarations as [supertraits]: `trait Circle : Shape {}` is
equivalent to `trait Circle where Self : Shape {}`.
* In trait declarations as bounds on [associated types]:
Expand Down

0 comments on commit c4202a8

Please sign in to comment.