File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1422,6 +1422,10 @@ macro_rules! from_str_int_impl {
14221422 /// whitespace) represent an error. Underscores (which are accepted in Rust literals)
14231423 /// also represent an error.
14241424 ///
1425+ /// # See also
1426+ /// For parsing numbers in other bases, such as binary or hexadecimal,
1427+ /// see [`from_str_radix`][Self::from_str_radix].
1428+ ///
14251429 /// # Examples
14261430 ///
14271431 /// ```
@@ -1467,6 +1471,14 @@ macro_rules! from_str_int_impl {
14671471 ///
14681472 /// This function panics if `radix` is not in the range from 2 to 36.
14691473 ///
1474+ /// # See also
1475+ /// If the string to be parsed is in base 10 (decimal),
1476+ /// [`from_str`] or [`str::parse`] can also be used.
1477+ ///
1478+ // FIXME(#122566): These HTML links work around a rustdoc-json test failure.
1479+ /// [`from_str`]: #method.from_str
1480+ /// [`str::parse`]: primitive.str.html#method.parse
1481+ ///
14701482 /// # Examples
14711483 ///
14721484 /// ```
You can’t perform that action at this time.
0 commit comments