summaryrefslogtreecommitdiff
path: root/exercises/traits/README.md
diff options
context:
space:
mode:
authorAli Afsharzadeh <afsharzadeh8@gmail.com>2023-03-30 19:53:22 +0330
committerAli Afsharzadeh <afsharzadeh8@gmail.com>2023-03-30 19:53:22 +0330
commit382e16eb7ea66cddc4860f4b19453b031a2a8a8a (patch)
tree4867f505b36ed69381a294b58d056cd9e92b8439 /exercises/traits/README.md
parent362c1b0d113ad9a5bd4d1dee8086757efd060785 (diff)
feat(docs): add markdown linter for exercises README.md files
Diffstat (limited to 'exercises/traits/README.md')
-rw-r--r--exercises/traits/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/traits/README.md b/exercises/traits/README.md
index de67acd..ac87c64 100644
--- a/exercises/traits/README.md
+++ b/exercises/traits/README.md
@@ -7,13 +7,13 @@ Data types can implement traits. To do so, the methods making up the trait are d
In this way, traits are somewhat similar to Java interfaces and C++ abstract classes.
Some additional common Rust traits include:
+
- `Clone` (the `clone` method)
- `Display` (which allows formatted display via `{}`)
- `Debug` (which allows formatted display via `{:?}`)
Because traits indicate shared behavior between data types, they are useful when writing generics.
-
## Further information
- [Traits](https://doc.rust-lang.org/book/ch10-02-traits.html)