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 74fd001 commit d44a5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/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 d44a5fd

Please sign in to comment.