Skip to content

Commit fd6e375

Browse files
authored
Correct for trait-bounds.md
`fn f<A> where A: Copy () {}` -> `fn f<A>() where A: Copy {}`
1 parent 2cb0ed9 commit fd6e375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trait-bounds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ provided on any type in a [where clause]. There are also shorter forms for
2727
certain common cases:
2828

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

0 commit comments

Comments
 (0)