Skip to content

Commit

Permalink
Fix docs of compare_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
EqualMa authored Sep 21, 2024
1 parent 4969ea8 commit 49128a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2733,7 +2733,7 @@ extern "rust-intrinsic" {

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

0 comments on commit 49128a4

Please sign in to comment.