Skip to content

Commit 0074ae5

Browse files
byronwilliamsemberian
authored andcommitted
Change fmt! to format!
1 parent dce61c9 commit 0074ae5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

doc/rust.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ syntax, and yet are not implementable as functions. Instead, they are given
482482
names, and invoked through a consistent syntax: `name!(...)`. Examples
483483
include:
484484

485-
* `fmt!` : format data into a string
485+
* `format!` : format data into a string
486486
* `env!` : look up an environment variable's value at compile time
487487
* `file!`: return the path to the file being compiled
488488
* `stringify!` : pretty-print the Rust expression given as an argument
@@ -1975,10 +1975,6 @@ Supported traits for `deriving` are:
19751975
* `Rand`, to create a random instance of a data type.
19761976
* `Default`, to create an empty instance of a data type.
19771977
* `Zero`, to create an zero instance of a numeric data type.
1978-
* `ToStr`, to convert to a string. For a type with this instance,
1979-
`obj.to_str()` has similar output as `fmt!("%?", obj)`, but it differs in that
1980-
each constituent field of the type must also implement `ToStr` and will have
1981-
`field.to_str()` invoked to build up the result.
19821978
* `FromPrimitive`, to create an instance from a numeric primitve.
19831979

19841980
### Stability

0 commit comments

Comments
 (0)