diff options
author | Clyybber <darkmine956@gmail.com> | 2020-12-02 17:18:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 17:18:51 +0100 |
commit | af984a3db969d28961a9e765190c091c9aa30880 (patch) | |
tree | 0fc5496458c664ecc59a502d537c2d8952d80bf9 | |
parent | d2bf0fb43c40253e3959715fb1fdf866c04559c2 (diff) | |
download | Nim-af984a3db969d28961a9e765190c091c9aa30880.tar.gz |
Fix typo and improve grammar for clamps note
-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 d9c7f6782..a20e21064 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 that** `a < b` is assuemed and no check for it. + ## **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 |