From 443bf93e48b90415564046ae846e8781fe1f163e Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 13 Aug 2013 21:33:09 -0700 Subject: Fix a typo in the ifmt dox --- src/libstd/fmt/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/fmt') 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 -- cgit 1.4.1-3-g733a5