From dadb6f0cd9fa7e4b402a0107358acb34002d4895 Mon Sep 17 00:00:00 2001 From: reedlepee Date: Sat, 19 Oct 2013 04:06:18 +0530 Subject: [PATCH] Don't Make str field private --- src/libstd/str.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 883934124a6c..a6b0924e6c18 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -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`