From af984a3db969d28961a9e765190c091c9aa30880 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Wed, 2 Dec 2020 17:18:51 +0100 Subject: Fix typo and improve grammar for clamps note --- lib/system/comparisons.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1-2-gfad0 takspecs <akspecs@tilde.institute>
summary refs log tree commit diff stats
path: root/Makefile
blob: 98ae57a62f8609f2761722225554619cfd0c9d37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72