Skip to content

Commit f5b2963

Browse files
committed
Improve special-traits section very slightly.
1 parent 7f2f09f commit f5b2963

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/doc/reference.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3821,18 +3821,20 @@ impl Printable for String {
38213821
`self` refers to the value of type `String` that is the receiver for a call to
38223822
the method `make_string`.
38233823

3824-
# The `Copy` trait
3824+
# Special traits
38253825

3826-
Rust has a special trait, `Copy`, which when implemented changes the semantics
3827-
of a value. Values whose type implements `Copy` are copied rather than moved
3828-
upon assignment.
3826+
Several traits define special evaluation behavior.
38293827

3830-
# The `Sized` trait
3828+
## The `Copy` trait
38313829

3832-
`Sized` is a special trait which indicates that the size of this type is known
3833-
at compile-time.
3830+
The `Copy` trait changes the semantics of a type implementing it. Values whose
3831+
type implements `Copy` are copied rather than moved upon assignment.
38343832

3835-
# The `Drop` trait
3833+
## The `Sized` trait
3834+
3835+
The `Sized` trait indicates that the size of this type is known at compile-time.
3836+
3837+
## The `Drop` trait
38363838

38373839
The `Drop` trait provides a destructor, to be run whenever a value of this type
38383840
is to be destroyed.

0 commit comments

Comments
 (0)