Skip to content

Commit dadb6f0

Browse files
committed
Don't Make str field private
1 parent fd2c012 commit dadb6f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/str.rs

+1
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,7 @@ pub fn utf8_char_width(b: u8) -> uint {
997997
/// the utf8 bytes of a string.
998998
pub struct CharRange {
999999
/// Current `char`
1000+
/// This field should be public making it private causes error while compiling!!
10001001
ch: char,
10011002

10021003
/// Index of the first byte of the next `char`

0 commit comments

Comments
 (0)