Correct for trait-bounds.md

`fn f<A> where A: Copy () {}` -> `fn f<A>() where A: Copy {}`
This commit is contained in:
James Williams 2023-01-20 10:56:19 +00:00 committed by GitHub
parent 2cb0ed9ba5
commit fd6e375b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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]: