From: Robert Griesemer Date: Fri, 2 Jun 2023 16:29:07 +0000 (-0700) Subject: spec: clarify min/max rules for numeric arguments (exclude NaNs) X-Git-Tag: go1.21rc1~77 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=1aaf1b219a44feaeaa1d737b5ea82202e9dbd5de;p=gostls13.git spec: clarify min/max rules for numeric arguments (exclude NaNs) Fixes #60570. Change-Id: I7ef834731ea26ceee5ec9b7438fdd8323aaf828e Reviewed-on: https://go-review.googlesource.com/c/go/+/500416 TryBot-Bypass: Robert Griesemer Reviewed-by: Robert Griesemer Reviewed-by: Ian Lance Taylor Auto-Submit: Robert Griesemer --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 2caf274ed0..bcb06e72ff 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -7563,7 +7563,7 @@ t := max("", "foo", "bar") // t == "foo" (string kind)

-For numeric arguments, min and max are +For numeric arguments, assuming all NaNs are equal, min and max are commutative and associative: