Commit c1bbc4ae authored by Robert Griesemer's avatar Robert Griesemer

- one-line funcs in misc

gofmt -w misc

R=rsc
http://go/go-review/1025007
parent 368f8cbc
...@@ -120,9 +120,7 @@ type Int struct { ...@@ -120,9 +120,7 @@ type Int struct {
} }
// NewInt returns a new Int initialized to x. // NewInt returns a new Int initialized to x.
func NewInt(x int64) *Int { func NewInt(x int64) *Int { return new(Int).SetInt64(x) }
return new(Int).SetInt64(x);
}
// Int promises that the zero value is a 0, but in gmp // Int promises that the zero value is a 0, but in gmp
// the zero value is a crash. To bridge the gap, the // the zero value is a crash. To bridge the gap, the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment