Skip to content

Commit afe2c1f

Browse files
author
Nick Hamann
committed
Improve intro to traits section
1 parent 50e2f55 commit afe2c1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,8 +1307,8 @@ type of the value is not required to ascribe to `Sync`.
13071307

13081308
### Traits
13091309

1310-
A _trait_ describes a collection of methods and associated items (like
1311-
associated types or associated constants).
1310+
Traits are Rust's take on interfaces. A _trait_ describes a collection of
1311+
methods and associated items (like associated types or associated constants).
13121312

13131313
An example is the following trait `Shape`:
13141314

0 commit comments

Comments
 (0)