]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: fix alignment in Float.Parse docs
authorMohit Agarwal <mohit@sdf.org>
Mon, 24 Oct 2016 17:09:04 +0000 (22:39 +0530)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 24 Oct 2016 17:59:42 +0000 (17:59 +0000)
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>
src/math/big/floatconv.go

index 186dfe4a6e33e5eae3c7f5ff4b899daadd59f47c..95d1bf84e2436361c4efb06d7b0326d27cc251cc 100644 (file)
@@ -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.