We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
core::str
1 parent 3c5a0fa commit 0f9cb1bCopy full SHA for 0f9cb1b
src/libcore/str/mod.rs
@@ -388,8 +388,9 @@ pub fn next_code_point<'a, I: Iterator<Item = &'a u8>>(bytes: &mut I) -> Option<
388
/// Reads the last code point out of a byte iterator (assuming a
389
/// UTF-8-like encoding).
390
#[inline]
391
-fn next_code_point_reverse<'a,
392
- 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>,
393
+{
394
// Decode UTF-8
395
let w = match bytes.next_back() {
396
None => return None,
0 commit comments