summaryrefslogtreecommitdiff
path: root/src/pkg/exp/eval/stmt.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-02-24 13:24:37 -0800
committerRobert Griesemer <gri@golang.org>2010-02-24 13:24:37 -0800
commit25df35f2c7eda611664834fa15d158482d800de4 (patch)
treee81ca00f610f3f60e00d1914af60ee6f1c5ad714 /src/pkg/exp/eval/stmt.go
parent06b944d91954aaef6043546899972ad81feca159 (diff)
downloadgolang-25df35f2c7eda611664834fa15d158482d800de4.tar.gz
gofmt: don't print ()'s around function-typed results (not needed anymore)
- add extra test cases to go/printer tests - apply gofmt to src and misc R=rsc CC=golang-dev http://codereview.appspot.com/223041
Diffstat (limited to 'src/pkg/exp/eval/stmt.go')
-rw-r--r--src/pkg/exp/eval/stmt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/exp/eval/stmt.go b/src/pkg/exp/eval/stmt.go
index 758e479f8..75b934b3d 100644
--- a/src/pkg/exp/eval/stmt.go
+++ b/src/pkg/exp/eval/stmt.go
@@ -1226,7 +1226,7 @@ func (a *blockCompiler) exit() { a.block.exit() }
* Function compiler
*/
-func (a *compiler) compileFunc(b *block, decl *FuncDecl, body *ast.BlockStmt) (func(*Thread) Func) {
+func (a *compiler) compileFunc(b *block, decl *FuncDecl, body *ast.BlockStmt) func(*Thread) Func {
// Create body scope
//
// The scope of a parameter or result is the body of the