From 944a9c7a4f2553998609351ee17111995cf80bb7 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 12 Dec 2018 22:08:50 -0800 Subject: [PATCH] math: use constant rather than variable for exported test threshold This is a minor follow-up on https://golang.org/cl/153059. TBR=iant Updates #6794. Change-Id: I03657dafc572959d46a03f86bbeb280825bc969d Reviewed-on: https://go-review.googlesource.com/c/153845 Reviewed-by: Robert Griesemer --- src/math/export_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/math/export_test.go b/src/math/export_test.go index 5f15bdb025d2dc..53d9205b9d1693 100644 --- a/src/math/export_test.go +++ b/src/math/export_test.go @@ -9,5 +9,6 @@ var ExpGo = exp var Exp2Go = exp2 var HypotGo = hypot var SqrtGo = sqrt -var ReduceThreshold = reduceThreshold var TrigReduce = trigReduce + +const ReduceThreshold = reduceThreshold