diff options
author | Robert Griesemer <gri@golang.org> | 2009-11-06 14:27:41 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-11-06 14:27:41 -0800 |
commit | f186fb55d3d6f0862dd266b2717518797cce8fcf (patch) | |
tree | 18e22313bca3d51e1dc230fc1ce3085e45cc423c /misc/cgo/gmp/gmp.go | |
parent | 828334dd95ce8e4bf3662bd5c89d7c417f0741d0 (diff) | |
download | golang-f186fb55d3d6f0862dd266b2717518797cce8fcf.tar.gz |
- one-line funcs in misc
gofmt -w misc
R=rsc
http://go/go-review/1025007
Diffstat (limited to 'misc/cgo/gmp/gmp.go')
-rw-r--r-- | misc/cgo/gmp/gmp.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/misc/cgo/gmp/gmp.go b/misc/cgo/gmp/gmp.go index d26bb4a73..a876f9cbc 100644 --- a/misc/cgo/gmp/gmp.go +++ b/misc/cgo/gmp/gmp.go @@ -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 |