Skip to content

Commit

Permalink
Rollup merge of rust-lang#35910 - tbu-:pr_weird_linebreak, r=alexcric…
Browse files Browse the repository at this point in the history
…hton

Change a weird line break in `core::str`
  • Loading branch information
eddyb committed Aug 23, 2016
2 parents ddbc9c4 + 0f9cb1b commit e38e535
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
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 e38e535

Please sign in to comment.