Skip to content

Commit e5c9a8a

Browse files
committed
Fixed lint problems
1 parent a1bf759 commit e5c9a8a

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

src/libcore/extfmt.rs

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Support for fmt! expressions.
22
//!
33
//! The syntax is close to that of Posix format strings:
4-
//!
4+
//!
55
//! ~~~~~~
66
//! Format := '%' Parameter? Flag* Width? Precision? Type
77
//! Parameter := [0-9]+ '$'
@@ -10,18 +10,24 @@
1010
//! Precision := '.' [0-9]+
1111
//! Type := [bcdfiostuxX?]
1212
//! ~~~~~~
13-
//!
14-
//! * Parameter is the 1-based argument to apply the format to. Currently not implemented.
15-
//! * Flag 0 causes leading zeros to be used for padding when converting numbers.
16-
//! * Flag # causes the conversion to be done in an *alternative* manner. Currently not implemented.
17-
//! * Flag + causes signed numbers to always be prepended with a sign character.
13+
//!
14+
//! * Parameter is the 1-based argument to apply the format to. Currently not
15+
//! implemented.
16+
//! * Flag 0 causes leading zeros to be used for padding when converting
17+
//! numbers.
18+
//! * Flag # causes the conversion to be done in an *alternative* manner.
19+
//! Currently not implemented.
20+
//! * Flag + causes signed numbers to always be prepended with a sign
21+
//! character.
1822
//! * Flag - left justifies the result
19-
//! * Width specifies the minimum field width of the result. By default leading spaces are added.
20-
//! * Precision specifies the minimum number of digits for integral types and the minimum number
23+
//! * Width specifies the minimum field width of the result. By default
24+
//! leading spaces are added.
25+
//! * Precision specifies the minimum number of digits for integral types
26+
//! and the minimum number
2127
//! of decimal places for float.
22-
//!
28+
//!
2329
//! The types currently supported are:
24-
//!
30+
//!
2531
//! * b - bool
2632
//! * c - char
2733
//! * d - int

0 commit comments

Comments
 (0)