Rollup merge of #48243 - rust-lang:steveklabnik-patch-1, r=kennytm

spelling fix in comment

r? @Manishearth
This commit is contained in:
Guillaume Gomez 2018-02-17 14:45:24 +01:00 committed by GitHub
commit 01c7f3a345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,7 +324,7 @@ unsafe impl<'a> Searcher<'a> for CharSearcher<'a> {
// the second byte when searching for the third.
//
// However, this is totally okay. While we have the invariant that
// self.finger is on a UTF8 boundary, this invariant is not relid upon
// self.finger is on a UTF8 boundary, this invariant is not relied upon
// within this method (it is relied upon in CharSearcher::next()).
//
// We only exit this method when we reach the end of the string, or if we