1
0
mirror of https://github.com/golang/go synced 2024-11-23 15:00:03 -07:00

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 <https://golang.org/pkg/math/big/#Float.Parse>):

<<<
	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 <bradfitz@golang.org>
This commit is contained in:
Mohit Agarwal 2016-10-24 22:39:04 +05:30 committed by Brad Fitzpatrick
parent 0fff67d191
commit a6141ebd3f

View File

@ -222,12 +222,12 @@ func (z *Float) pow5(n uint64) *Float {
// //
// number = [ sign ] [ prefix ] mantissa [ exponent ] | infinity . // number = [ sign ] [ prefix ] mantissa [ exponent ] | infinity .
// sign = "+" | "-" . // sign = "+" | "-" .
// prefix = "0" ( "x" | "X" | "b" | "B" ) . // prefix = "0" ( "x" | "X" | "b" | "B" ) .
// mantissa = digits | digits "." [ digits ] | "." digits . // mantissa = digits | digits "." [ digits ] | "." digits .
// exponent = ( "E" | "e" | "p" ) [ sign ] digits . // exponent = ( "E" | "e" | "p" ) [ sign ] digits .
// digits = digit { digit } . // digits = digit { digit } .
// digit = "0" ... "9" | "a" ... "z" | "A" ... "Z" . // 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 // The base argument must be 0, 2, 10, or 16. Providing an invalid base
// argument will lead to a run-time panic. // argument will lead to a run-time panic.