1
0
mirror of https://github.com/golang/go synced 2024-11-24 17:00:01 -07:00

- one-line funcs in misc

gofmt -w misc

R=rsc
http://go/go-review/1025007
This commit is contained in:
Robert Griesemer 2009-11-06 14:27:41 -08:00
parent 368f8cbc75
commit c1bbc4ae2b

View File

@ -120,9 +120,7 @@ type Int struct {
}
// NewInt returns a new Int initialized to x.
func NewInt(x int64) *Int {
return new(Int).SetInt64(x);
}
func NewInt(x int64) *Int { return new(Int).SetInt64(x) }
// Int promises that the zero value is a 0, but in gmp
// the zero value is a crash. To bridge the gap, the