Skip to content

Commit 2d1cd9a

Browse files
committed
Make ParseIntError and IntErrorKind fully public
1 parent 6cfc603 commit 2d1cd9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/num/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4768,11 +4768,11 @@ fn from_str_radix<T: FromStrRadixHelper>(src: &str, radix: u32) -> Result<T, Par
47684768
#[derive(Debug, Clone, PartialEq, Eq)]
47694769
#[stable(feature = "rust1", since = "1.0.0")]
47704770
pub struct ParseIntError {
4771-
kind: IntErrorKind,
4771+
pub kind: IntErrorKind,
47724772
}
47734773

47744774
#[derive(Debug, Clone, PartialEq, Eq)]
4775-
enum IntErrorKind {
4775+
pub enum IntErrorKind {
47764776
Empty,
47774777
InvalidDigit,
47784778
Overflow,

0 commit comments

Comments
 (0)