1
Fork 0

Change a weird line break in core::str

This commit is contained in:
Tobias Bucher 2016-08-23 02:05:53 +02:00
parent 3c5a0fa45b
commit 0f9cb1b97c

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,