Skip to content

Commit

Permalink
Change a weird line break in core::str
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Aug 23, 2016
1 parent 3c5a0fa commit 0f9cb1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libcore/str/mod.rs
Expand Up @@ -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
/// UTF-8-like encoding).
#[inline]
fn next_code_point_reverse<'a,
I: DoubleEndedIterator<Item = &'a u8>>(bytes: &mut I) -> Option<u32> {
fn next_code_point_reverse<'a, I>(bytes: &mut I) -> Option<u32>
where I: DoubleEndedIterator<Item = &'a u8>,
{
// Decode UTF-8
let w = match bytes.next_back() {
None => return None,
Expand Down

0 comments on commit 0f9cb1b

Please sign in to comment.