diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-12-04 05:59:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 22:59:17 +0100 |
commit | e4e5a0c65ab10f48746f8f9b2417e8ca69724a04 (patch) | |
tree | 742bed8b309f8796e7fdd42025121a7d50c7069a /lib/system | |
parent | 808ab7eae22536167445818c9a4650d36e87d39a (diff) | |
download | Nim-e4e5a0c65ab10f48746f8f9b2417e8ca69724a04.tar.gz |
cleanup docs and tests (#16235)
* js module also uses runnableExamples * cleanup docs and tests
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/comparisons.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/comparisons.nim b/lib/system/comparisons.nim index a20e21064..c57cfa965 100644 --- a/lib/system/comparisons.nim +++ b/lib/system/comparisons.nim @@ -253,7 +253,7 @@ proc clamp*[T](x, a, b: T): T = ## Limits the value `x` within the interval [a, b]. ## This proc is equivalent to but fatser than `max(a, min(b, x))`. ## - ## **Note:** `a < b` is assumed and will not be checked. + ## **Note:** `a <= b` is assumed and will not be checked. runnableExamples: assert (1.4).clamp(0.0, 1.0) == 1.0 assert (0.5).clamp(0.0, 1.0) == 0.5 |