diff --git a/doc/progs/server.go b/doc/progs/server.go index 45924531617..a5317f27f81 100644 --- a/doc/progs/server.go +++ b/doc/progs/server.go @@ -9,7 +9,7 @@ type request struct { replyc chan int; } -type binOp func(a, b int) int; +type binOp func(a, b int) int func run(op binOp, req *request) { reply := op(req.a, req.b); diff --git a/doc/progs/server1.go b/doc/progs/server1.go index 6a1b6f15619..46d7b4ccf74 100644 --- a/doc/progs/server1.go +++ b/doc/progs/server1.go @@ -9,7 +9,7 @@ type request struct { replyc chan int; } -type binOp func(a, b int) int; +type binOp func(a, b int) int func run(op binOp, req *request) { reply := op(req.a, req.b);