aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/deadcode/deadcode.go
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2022-04-13 13:31:24 -0700
committerGopher Robot <gobot@golang.org>2022-04-14 17:42:53 +0000
commit62b8ec744b8e10b80f9271fed93116387c9128ef (patch)
treeada410ebc3dd74b271ffb5521fb7b27faab7c261 /src/cmd/compile/internal/deadcode/deadcode.go
parentcb702a2a5670d4fa599f573b37b1a01abc9f995a (diff)
downloadgo-62b8ec744b8e10b80f9271fed93116387c9128ef.tar.xz
math: improve documentation of Copysign
Name the arguments in a way that is more self-describing. Many code editor tools show a snippet of the function and its arguments. However, "x" and "y" are not helpful in determining which is the sign and which is the magnitude, short of reading the documentation itself. Name the sign argument as "sign" to be explicit. This follows the same naming convention as IsInf. Change-Id: Ie3055009e475f96c92d5ea7bfe9828eed908c78b Reviewed-on: https://go-review.googlesource.com/c/go/+/400177 Run-TryBot: Joseph Tsai <joetsai@digital-static.net> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/cmd/compile/internal/deadcode/deadcode.go')
0 files changed, 0 insertions, 0 deletions