mirror of
https://github.com/golang/go
synced 2024-11-24 21:40:09 -07:00
- one-line funcs in misc
gofmt -w misc R=rsc http://go/go-review/1025007
This commit is contained in:
parent
368f8cbc75
commit
c1bbc4ae2b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user