From 0074ae5c8ff9d26a91c54435245e4a8aa06ae648 Mon Sep 17 00:00:00 2001 From: Byron Williams Date: Sun, 19 Jan 2014 16:57:49 +0000 Subject: [PATCH] Change fmt! to format! --- doc/rust.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index 0b817539b29..9639e0f179a 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