From 25df35f2c7eda611664834fa15d158482d800de4 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 24 Feb 2010 13:24:37 -0800 Subject: 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 --- src/pkg/exp/eval/stmt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/exp/eval/stmt.go') 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 -- cgit v1.2.3