Skip to content

Commit

Permalink
Change fmt! to format!
Browse files Browse the repository at this point in the history
  • Loading branch information
byronwilliams authored and emberian committed Feb 2, 2014
1 parent dce61c9 commit 0074ae5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions doc/rust.md
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

5 comments on commit 0074ae5

@bors
Copy link
Contributor

@bors bors commented on 0074ae5 Feb 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 0074ae5 Feb 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging cmr/rust/11668-squash = 0074ae5 into auto

@bors
Copy link
Contributor

@bors bors commented on 0074ae5 Feb 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmr/rust/11668-squash = 0074ae5 merged ok, testing candidate = fb663c3

@bors
Copy link
Contributor

@bors bors commented on 0074ae5 Feb 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 0074ae5 Feb 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = fb663c3

Please sign in to comment.