Skip to content

Commit 6d6f086

Browse files
committed
Auto merge of #26118 - tshepang:define-trait, r=steveklabnik
I saw a variation of this definition in [an article](http://pcwalton.github.io/blog/2012/08/08/a-gentle-introduction-to-traits-in-rust) by @pcwalton.
2 parents 7c38de8 + e2a1afa commit 6d6f086

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/trpl/traits.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
% Traits
22

3+
A trait is a language feature that tells the Rust compiler about
4+
functionality a type must provide.
5+
36
Do you remember the `impl` keyword, used to call a function with [method
47
syntax][methodsyntax]?
58

0 commit comments

Comments
 (0)