]> Cypherpunks.ru repositories - gostls13.git/commitdiff
spec: clarify min/max rules for numeric arguments (exclude NaNs)
authorRobert Griesemer <gri@golang.org>
Fri, 2 Jun 2023 16:29:07 +0000 (09:29 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 6 Jun 2023 21:23:09 +0000 (21:23 +0000)
Fixes #60570.

Change-Id: I7ef834731ea26ceee5ec9b7438fdd8323aaf828e
Reviewed-on: https://go-review.googlesource.com/c/go/+/500416
TryBot-Bypass: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>

doc/go_spec.html

index 2caf274ed043a2fa474dd05cfe0c43db8909782b..bcb06e72ff5221b90ed03aa00661b6c682f50798 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of May 25, 2023",
+       "Subtitle": "Version of June 6, 2023",
        "Path": "/ref/spec"
 }-->
 
@@ -7563,7 +7563,7 @@ t := max("", "foo", "bar")  // t == "foo" (string kind)
 </pre>
 
 <p>
-For numeric arguments, <code>min</code> and <code>max</code> are
+For numeric arguments, assuming all NaNs are equal, <code>min</code> and <code>max</code> are
 commutative and associative:
 </p>