diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-14 21:47:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-14 21:47:28 +0100 |
| commit | 8f87871f789af0fbb375330632b80cc5449b9d14 (patch) | |
| tree | dd0ffa3a21fc10a6113d770a78bddcb7fc1fcca9 | |
| parent | 71cf7f59a923c8f2ece1dbe6e725225b1e68c313 (diff) | |
| parent | 3d9441c394f70091051ab8362e96300d4fcc1e20 (diff) | |
Update the comment on core:bytes.compare() to match the proc signature
| -rw-r--r-- | core/bytes/bytes.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bytes/bytes.odin b/core/bytes/bytes.odin index bde02259c..08dcd6113 100644 --- a/core/bytes/bytes.odin +++ b/core/bytes/bytes.odin @@ -67,8 +67,8 @@ truncate_to_rune :: proc(str: []byte, r: rune) -> []byte { return str[:n] } -// Compares two strings, returning a value representing which one comes first lexiographically. -// -1 for `a`; 1 for `b`, or 0 if they are equal. +// Compares two []byte, returning a value representing which one comes first lexiographically. +// Returns: -1 for `lhs`, 1 for `rhs`, or 0 if they are equal. compare :: proc(lhs, rhs: []byte) -> int { res := runtime.memory_compare(raw_data(lhs), raw_data(rhs), min(len(lhs), len(rhs))) if res == 0 && len(lhs) != len(rhs) { |