diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fmt/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/fmt/mod.rs b/src/libstd/fmt/mod.rs index 41e588934b7..70ec5d93199 100644 --- a/src/libstd/fmt/mod.rs +++ b/src/libstd/fmt/mod.rs @@ -93,7 +93,7 @@ string. Because formatting is done via traits, there is no requirement that the `d` format actually takes an `int`, but rather it simply requires a type which ascribes to the `Signed` formatting trait. There are various parameters which do -require a particular type, however. Namely if the sytnax `{:.*s}` is used, then +require a particular type, however. Namely if the syntax `{:.*s}` is used, then the number of characters to print from the string precedes the actual string and must have the type `uint`. Although a `uint` can be printed with `{:u}`, it is illegal to reference an argument as such. For example, this is another invalid |
