Skip to content

Commit 4cd806f

Browse files
committed
---
yaml --- r: 36370 b: refs/heads/try2 c: e5c9a8a h: refs/heads/master v: v3
1 parent b4f54e5 commit 4cd806f

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: a1bf75978350332ab48828868fa04dfcca8e1d9f
8+
refs/heads/try2: e5c9a8a4796d668d20cae1b65e70dd6c2114562a
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/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)