diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-09-25 13:33:32 -0600 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-09-25 13:33:32 -0600 |
| commit | d2e2ec166182e039fa7dd26581fc9e762288d440 (patch) | |
| tree | 8dde22b94922ea29b0cf59ce2b5581b076b45ebf | |
| parent | aed73e0122e538375e6ef827e90c6d1a191c5fff (diff) | |
| parent | 081278eb7acc761f583351e846ebad21c88331ff (diff) | |
| download | rust-d2e2ec166182e039fa7dd26581fc9e762288d440.tar.gz rust-d2e2ec166182e039fa7dd26581fc9e762288d440.zip | |
Rollup merge of #28637 - SimonSapin:patch-6, r=alexcrichton
| -rw-r--r-- | src/libcore/str/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 69ebcb1ab7e..456e89d4721 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -115,8 +115,8 @@ impl Utf8Error { /// Returns the index in the given string up to which valid UTF-8 was /// verified. /// - /// Starting at the index provided, but not necessarily at it precisely, an - /// invalid UTF-8 encoding sequence was found. + /// It is the maximum index such that `from_utf8(input[..index])` + /// would return `Some(_)`. #[unstable(feature = "utf8_error", reason = "method just added", issue = "27734")] pub fn valid_up_to(&self) -> usize { self.valid_up_to } |
