Skip to content

Commit 202df81

Browse files
Rollup merge of rust-lang#130658 - EqualMa:patch-1, r=scottmcm
Fix docs of compare_bytes The docs of `compare_bytes`. The return value is positive if <del>`right`</del> `left` is greater
2 parents 9c26e05 + 49128a4 commit 202df81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2733,7 +2733,7 @@ extern "rust-intrinsic" {
27332733

27342734
/// Lexicographically compare `[left, left + bytes)` and `[right, right + bytes)`
27352735
/// as unsigned bytes, returning negative if `left` is less, zero if all the
2736-
/// bytes match, or positive if `right` is greater.
2736+
/// bytes match, or positive if `left` is greater.
27372737
///
27382738
/// This underlies things like `<[u8]>::cmp`, and will usually lower to `memcmp`.
27392739
///

0 commit comments

Comments
 (0)