From 94073f7e2ad9c04a9592882b99464c184833c729 Mon Sep 17 00:00:00 2001 From: Byron Williams Date: Sun, 19 Jan 2014 16:57:49 +0000 Subject: [PATCH 1/2] Change fmt! to format! --- doc/rust.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index bf0e9dd090ae4..10218a1d08df7 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 * `stringify!` : pretty-print the Rust expression given as an argument * `include!` : include the Rust expression in the given file @@ -1975,7 +1975,7 @@ Supported traits for `deriving` are: * `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 + `obj.to_str()` has similar output as `format!("%?", 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. From ba166eab20bc85515bca7394805379facab26727 Mon Sep 17 00:00:00 2001 From: Byron Williams Date: Mon, 20 Jan 2014 21:22:11 +0000 Subject: [PATCH 2/2] remove lines as per cmr --- doc/rust.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index 10218a1d08df7..7dfcdc2d5c9f1 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -1974,10 +1974,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 `format!("%?", 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