Skip to content

Commit 59072fe

Browse files
committed
---
yaml --- r: 33758 b: refs/heads/snap-stage3 c: e5c9a8a h: refs/heads/master v: v3
1 parent dc1b03a commit 59072fe

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: a1bf75978350332ab48828868fa04dfcca8e1d9f
4+
refs/heads/snap-stage3: e5c9a8a4796d668d20cae1b65e70dd6c2114562a
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)