Skip to content

Commit 4e760ac

Browse files
authored
Update traits.md
1 parent a5d1581 commit 4e760ac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/items/traits.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ Object safe traits can be the base trait of a [trait object]. A trait is
6868
*object safe* if it has the following qualities (defined in [RFC 255]):
6969

7070
* It must not require `Self: Sized`
71-
* All associated functions must either have a `where Self: Sized` bound
72-
(reciever type of `self: Self`implies this), or
71+
* All associated functions must either have a `where Self: Sized` bound (reciever type of `self: Self`implies this), or
7372
* Not have any type parameters (although lifetime parameters are allowed),
7473
and
7574
* Be a [method] that does not use `Self` except in the type of the receiver.
@@ -324,7 +323,7 @@ fn main() {
324323
[_WhereClause_]: generics.md#where-clauses
325324
[bounds]: ../trait-bounds.md
326325
[trait object]: ../types/trait-object.md
327-
[RFC 255]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-.md
326+
[RFC 255]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
328327
[associated items]: associated-items.md
329328
[method]: associated-items.md#methods
330329
[supertraits]: traits.md#supertraits

0 commit comments

Comments
 (0)