about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/rust.md6
1 files changed, 1 insertions, 5 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 1ca75fa5bef..6869e794195 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -482,7 +482,7 @@ syntax, and yet are not implementable as functions. Instead, they are given
 names, and invoked through a consistent syntax: `name!(...)`. Examples
 include:
 
-* `fmt!` : format data into a string
+* `format!` : format data into a string
 * `env!` : look up an environment variable's value at compile time
 * `file!`: return the path to the file being compiled
 * `stringify!` : pretty-print the Rust expression given as an argument
@@ -1975,10 +1975,6 @@ Supported traits for `deriving` are:
 * `Rand`, to create a random 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
-  `field.to_str()` invoked to build up the result.
 * `FromPrimitive`, to create an instance from a numeric primitve.
 
 ### Stability