Commit b59dbd7f authored by Rob Pike's avatar Rob Pike

rename variable at rsc's request

R=rsc
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=23896
CL=23928
parent 96777ea2
...@@ -12,8 +12,8 @@ type request struct { ...@@ -12,8 +12,8 @@ type request struct {
type binOp (a, b int) int; type binOp (a, b int) int;
func run(op *binOp, req *request) { func run(op *binOp, req *request) {
result := op(req.a, req.b); reply := op(req.a, req.b);
req.replyc <- result; req.replyc <- reply;
} }
func server(op *binOp, service chan *request) { func server(op *binOp, service chan *request) {
......
...@@ -12,8 +12,8 @@ type request struct { ...@@ -12,8 +12,8 @@ type request struct {
type binOp (a, b int) int; type binOp (a, b int) int;
func run(op *binOp, req *request) { func run(op *binOp, req *request) {
result := op(req.a, req.b); reply := op(req.a, req.b);
req.replyc <- result; req.replyc <- reply;
} }
func server(op *binOp, service chan *request, quit chan bool) { func server(op *binOp, service chan *request, quit chan bool) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment