diff options
| author | Jesse Jones <jesse9jones@gmail.com> | 2012-11-18 17:05:04 -0800 |
|---|---|---|
| committer | Jesse Jones <jesse9jones@gmail.com> | 2012-11-18 17:05:04 -0800 |
| commit | e5c9a8a4796d668d20cae1b65e70dd6c2114562a (patch) | |
| tree | 7ac7de170fa6dfe6b71a8b7da14dc5a17335dd78 /src/libcore | |
| parent | a1bf75978350332ab48828868fa04dfcca8e1d9f (diff) | |
| download | rust-e5c9a8a4796d668d20cae1b65e70dd6c2114562a.tar.gz rust-e5c9a8a4796d668d20cae1b65e70dd6c2114562a.zip | |
Fixed lint problems
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/extfmt.rs | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/src/libcore/extfmt.rs b/src/libcore/extfmt.rs index 4017dddad63..8930f809ff3 100644 --- a/src/libcore/extfmt.rs +++ b/src/libcore/extfmt.rs @@ -1,7 +1,7 @@ //! Support for fmt! expressions. //! //! The syntax is close to that of Posix format strings: -//! +//! //! ~~~~~~ //! Format := '%' Parameter? Flag* Width? Precision? Type //! Parameter := [0-9]+ '$' @@ -10,18 +10,24 @@ //! Precision := '.' [0-9]+ //! Type := [bcdfiostuxX?] //! ~~~~~~ -//! -//! * Parameter is the 1-based argument to apply the format to. Currently not implemented. -//! * Flag 0 causes leading zeros to be used for padding when converting numbers. -//! * Flag # causes the conversion to be done in an *alternative* manner. Currently not implemented. -//! * Flag + causes signed numbers to always be prepended with a sign character. +//! +//! * Parameter is the 1-based argument to apply the format to. Currently not +//! implemented. +//! * Flag 0 causes leading zeros to be used for padding when converting +//! numbers. +//! * Flag # causes the conversion to be done in an *alternative* manner. +//! Currently not implemented. +//! * Flag + causes signed numbers to always be prepended with a sign +//! character. //! * Flag - left justifies the result -//! * Width specifies the minimum field width of the result. By default leading spaces are added. -//! * Precision specifies the minimum number of digits for integral types and the minimum number +//! * Width specifies the minimum field width of the result. By default +//! leading spaces are added. +//! * Precision specifies the minimum number of digits for integral types +//! and the minimum number //! of decimal places for float. -//! +//! //! The types currently supported are: -//! +//! //! * b - bool //! * c - char //! * d - int |
