diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-31 15:14:07 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-31 15:14:07 -0500 |
| commit | 41f92837bebae1de783dc7f4a8f880011c72757c (patch) | |
| tree | 4730711a7c13c19c135d0432be4d1fe9b34c1f77 /api/bytes.yaml | |
| parent | 1f13fa92a87bec65d1760266b108a5485bc14c7a (diff) | |
| parent | dbae987f1fb54da795185a03f4c00d56a639f8cd (diff) | |
Merge branch 'dev' into static-dependencies
Diffstat (limited to 'api/bytes.yaml')
| -rw-r--r-- | api/bytes.yaml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/api/bytes.yaml b/api/bytes.yaml index dea650e2..adf7103b 100644 --- a/api/bytes.yaml +++ b/api/bytes.yaml @@ -57,7 +57,7 @@ Byte.is_between: return: type: 'Bool' description: > - `yes` if `low <= x and x <= high`, otherwise `no` + `yes` if `a <= x and x <= b` or `b <= x and x <= a`, otherwise `no` args: x: type: 'Byte' @@ -66,13 +66,14 @@ Byte.is_between: low: type: 'Byte' description: > - The lower bound to check (inclusive). + One end of the range to check (inclusive); high: type: 'Byte' description: > - The upper bound to check (inclusive). + The other end of the range to check (inclusive); example: | assert Byte(7).is_between(1, 10) == yes + assert Byte(7).is_between(10, 1) == yes assert Byte(7).is_between(100, 200) == no assert Byte(7).is_between(1, 7) == yes |
