Don't Make str field private
This commit is contained in:
parent
fd2c0128a7
commit
dadb6f0cd9
|
@ -997,6 +997,7 @@ pub fn utf8_char_width(b: u8) -> uint {
|
|||
/// the utf8 bytes of a string.
|
||||
pub struct CharRange {
|
||||
/// Current `char`
|
||||
/// This field should be public making it private causes error while compiling!!
|
||||
ch: char,
|
||||
|
||||
/// Index of the first byte of the next `char`
|
||||
|
|
Loading…
Reference in New Issue