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.
1 parent 9d21aca commit 078a623Copy full SHA for 078a623
src/libstd/memchr.rs
@@ -98,7 +98,7 @@ pub fn memrchr(needle: u8, haystack: &[u8]) -> Option<usize> {
98
99
#[cfg(not(target_os = "linux"))]
100
fn memrchr_specific(needle: u8, haystack: &[u8]) -> Option<usize> {
101
- haystack.iter().rposition(|&b| b == needle)
+ fallback::memrchr(needle, haystack)
102
}
103
104
memrchr_specific(needle, haystack)
0 commit comments