Skip to content

Commit 6d90e65

Browse files
Havvymark-i-m
authored andcommitted
Note -> Edition Difference
1 parent eb0f9ce commit 6d90e65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/items/associated-items.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ let circle_shape = Circle::new();
134134
let bounding_box = circle_shape.bounding_box();
135135
```
136136

137-
> NOTE: Until the 2018 edition, it was possible to declare trait methods with
138-
> anonymous parameters (e.g. `fn foo(u8)`). This was deprecated and disallowed
139-
> in the 2018 edition. All parameters must have an argument name. See [RFC
140-
> 1685](https://github.com/rust-lang/rfcs/pull/1685).
137+
> **Edition Differences**: Until the 2018 edition, it was possible to declare
138+
> trait methods with anonymous parameters (e.g. `fn foo(u8)`). This was
139+
> deprecated and disallowed in the 2018 edition. All parameters must have an
140+
> argument name. See [RFC 1685](https://github.com/rust-lang/rfcs/pull/1685).
141141
142142
## Associated Types
143143

0 commit comments

Comments
 (0)