summaryrefslogtreecommitdiff
path: root/doc/progs/server1.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc/progs/server1.go')
-rw-r--r--doc/progs/server1.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/progs/server1.go b/doc/progs/server1.go
index 69bf22d87..d70ddfd9d 100644
--- a/doc/progs/server1.go
+++ b/doc/progs/server1.go
@@ -27,9 +27,9 @@ func Server(op *BinOp, service *chan *Request, quit *chan bool) {
}
}
-func StartServer(op *BinOp) (servch *chan *Request, quitch *chan bool) {
- service := new(chan *Request);
- quit := new(chan bool);
+func StartServer(op *BinOp) (service *chan *Request, quit *chan bool) {
+ service = new(chan *Request);
+ quit = new(chan bool);
go Server(op, service, quit);
return service, quit;
}