From a6141ebd3f33c1f4330a0ce3507f686b7fd64489 Mon Sep 17 00:00:00 2001 From: Mohit Agarwal Date: Mon, 24 Oct 2016 22:39:04 +0530 Subject: [PATCH] math/big: fix alignment in Float.Parse docs Leading spaces in a couple of lines instead of tabs cause those to be misaligned (as seen on ): <<< number = [ sign ] [ prefix ] mantissa [ exponent ] | infinity . sign = "+" | "-" . prefix = "0" ( "x" | "X" | "b" | "B" ) . mantissa = digits | digits "." [ digits ] | "." digits . exponent = ( "E" | "e" | "p" ) [ sign ] digits . digits = digit { digit } . digit = "0" ... "9" | "a" ... "z" | "A" ... "Z" . infinity = [ sign ] ( "inf" | "Inf" ) . >>> Replace the leading spaces with tabs so that those align well. Change-Id: Ibba6cd53f340001bbd929067dc587feb071dc3bd Reviewed-on: https://go-review.googlesource.com/31830 Reviewed-by: Brad Fitzpatrick --- src/math/big/floatconv.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/math/big/floatconv.go b/src/math/big/floatconv.go index 186dfe4a6e3..95d1bf84e24 100644 --- a/src/math/big/floatconv.go +++ b/src/math/big/floatconv.go @@ -222,12 +222,12 @@ func (z *Float) pow5(n uint64) *Float { // // number = [ sign ] [ prefix ] mantissa [ exponent ] | infinity . // sign = "+" | "-" . -// prefix = "0" ( "x" | "X" | "b" | "B" ) . +// prefix = "0" ( "x" | "X" | "b" | "B" ) . // mantissa = digits | digits "." [ digits ] | "." digits . // exponent = ( "E" | "e" | "p" ) [ sign ] digits . // digits = digit { digit } . // digit = "0" ... "9" | "a" ... "z" | "A" ... "Z" . -// infinity = [ sign ] ( "inf" | "Inf" ) . +// infinity = [ sign ] ( "inf" | "Inf" ) . // // The base argument must be 0, 2, 10, or 16. Providing an invalid base // argument will lead to a run-time panic.