Skip to content

Commit 06322b8

Browse files
committed
Document the semantics of underscores
1 parent 2067eb4 commit 06322b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/num/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,8 @@ macro_rules! from_str_radix {
14351435
}
14361436
}]
14371437
/// sign followed by only digits. Leading and trailing non-digit characters (including
1438-
/// whitespace) represent an error.
1438+
/// whitespace) represent an error. Underscores (which are accepted in rust literals)
1439+
/// also represent an error.
14391440
///
14401441
/// Digits are a subset of these characters, depending on `radix`:
14411442
/// * `0-9`

0 commit comments

Comments
 (0)