]> Cypherpunks.ru repositories - gostls13.git/blobdiff - doc/go_spec.html
spec: clarify min/max rules for numeric arguments (exclude NaNs)
[gostls13.git] / 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>