about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/rust.md3
-rw-r--r--doc/tutorial.md2
2 files changed, 3 insertions, 2 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 730f78ea082..8e1028b4727 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -1717,7 +1717,8 @@ Supported traits for `deriving` are:
 * `Clone` and `DeepClone`, to perform (deep) copies.
 * `IterBytes`, to iterate over the bytes in a data type.
 * `Rand`, to create a random instance of a data type.
-* `Zero`, to create an zero (or empty) instance of a data type.
+* `Default`, to create an empty instance of a data type.
+* `Zero`, to create an zero instance of a numeric data type.
 * `ToStr`, to convert to a string. For a type with this instance,
   `obj.to_str()` has similar output as `fmt!("%?", obj)`, but it differs in that
   each constituent field of the type must also implement `ToStr` and will have
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 7614e848237..637dbb10c23 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -2249,7 +2249,7 @@ enum ABC { A, B, C }
 
 The full list of derivable traits is `Eq`, `TotalEq`, `Ord`,
 `TotalOrd`, `Encodable` `Decodable`, `Clone`, `DeepClone`,
-`IterBytes`, `Rand`, `Zero`, and `ToStr`.
+`IterBytes`, `Rand`, `Default`, `Zero`, and `ToStr`.
 
 # Crates and the module system