Rollup merge of #35910 - tbu-:pr_weird_linebreak, r=alexcrichton

Change a weird line break in `core::str`
This commit is contained in:
Guillaume Gomez 2016-08-23 22:48:02 +02:00 committed by GitHub
commit bc940193c8

View File

@ -388,8 +388,9 @@ pub fn next_code_point<'a, I: Iterator<Item = &'a u8>>(bytes: &mut I) -> Option<
/// Reads the last code point out of a byte iterator (assuming a /// Reads the last code point out of a byte iterator (assuming a
/// UTF-8-like encoding). /// UTF-8-like encoding).
#[inline] #[inline]
fn next_code_point_reverse<'a, fn next_code_point_reverse<'a, I>(bytes: &mut I) -> Option<u32>
I: DoubleEndedIterator<Item = &'a u8>>(bytes: &mut I) -> Option<u32> { where I: DoubleEndedIterator<Item = &'a u8>,
{
// Decode UTF-8 // Decode UTF-8
let w = match bytes.next_back() { let w = match bytes.next_back() {
None => return None, None => return None,