X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fdoc%2Ftrpl%2Ftraits.md;h=6d31b230749af028a9d11e4aa4e325224aa2190e;hb=e2a1afa1c2f39969b025efe684f4ac7c0070b807;hp=2ef9e7ca22e60a655b30ea6b037855f09c5d6889;hpb=20cf4cf62c72c67fdd89609f9098b259335ba1ae;p=rust.git diff --git a/src/doc/trpl/traits.md b/src/doc/trpl/traits.md index 2ef9e7ca22e..6d31b230749 100644 --- a/src/doc/trpl/traits.md +++ b/src/doc/trpl/traits.md @@ -1,5 +1,8 @@ % Traits +A trait is a language feature that tells the Rust compiler about +functionality a type must provide. + Do you remember the `impl` keyword, used to call a function with [method syntax][methodsyntax]?