File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,14 @@ macro_rules! int_impl {
132
132
133
133
/// Converts a string slice in a given base to an integer.
134
134
///
135
+ /// The string is expected to be an optional `+` or `-` sign
136
+ /// followed by digits.
135
137
/// Leading and trailing whitespace represent an error.
138
+ /// Digits are a subset of these characters, depending on `radix`:
139
+ ///
140
+ /// * `0-9`
141
+ /// * `a-z`
142
+ /// * `A-Z`
136
143
///
137
144
/// # Panics
138
145
///
@@ -1301,7 +1308,18 @@ macro_rules! uint_impl {
1301
1308
1302
1309
/// Converts a string slice in a given base to an integer.
1303
1310
///
1311
+ /// The string is expected to be an optional `+` sign
1312
+ /// followed by digits.
1304
1313
/// Leading and trailing whitespace represent an error.
1314
+ /// Digits are a subset of these characters, depending on `radix`:
1315
+ ///
1316
+ /// * `0-9`
1317
+ /// * `a-z`
1318
+ /// * `A-Z`
1319
+ ///
1320
+ /// # Panics
1321
+ ///
1322
+ /// This function panics if `radix` is not in the range from 2 to 36.
1305
1323
///
1306
1324
/// # Examples
1307
1325
///
You can’t perform that action at this time.
0 commit comments