From 1aaf1b219a44feaeaa1d737b5ea82202e9dbd5de Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 2 Jun 2023 09:29:07 -0700 Subject: [PATCH] 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 --- doc/go_spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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:

-- 2.50.0