From fd6e375b892e018ea79783ea824ca97f2ef1a563 Mon Sep 17 00:00:00 2001 From: James Williams Date: Fri, 20 Jan 2023 10:56:19 +0000 Subject: [PATCH] Correct for trait-bounds.md `fn f where A: Copy () {}` -> `fn f() where A: Copy {}` --- src/trait-bounds.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trait-bounds.md b/src/trait-bounds.md index c8dab3f1c..0a6731288 100644 --- a/src/trait-bounds.md +++ b/src/trait-bounds.md @@ -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() {}` is the same as `fn f where A: Copy () {}`. + `fn f() {}` is the same as `fn f() 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]: