summaryrefslogtreecommitdiff
path: root/misc/cgo
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-11-06 14:27:41 -0800
committerRobert Griesemer <gri@golang.org>2009-11-06 14:27:41 -0800
commitf186fb55d3d6f0862dd266b2717518797cce8fcf (patch)
tree18e22313bca3d51e1dc230fc1ce3085e45cc423c /misc/cgo
parent828334dd95ce8e4bf3662bd5c89d7c417f0741d0 (diff)
downloadgolang-f186fb55d3d6f0862dd266b2717518797cce8fcf.tar.gz
- one-line funcs in misc
gofmt -w misc R=rsc http://go/go-review/1025007
Diffstat (limited to 'misc/cgo')
-rw-r--r--misc/cgo/gmp/gmp.go4
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