mirror of
https://github.com/golang/go
synced 2024-11-21 18:34:44 -07:00
rename variable at rsc's request
R=rsc DELTA=4 (0 added, 0 deleted, 4 changed) OCL=23896 CL=23928
This commit is contained in:
parent
96777ea2a7
commit
b59dbd7fe0
@ -12,8 +12,8 @@ type request struct {
|
||||
type binOp (a, b int) int;
|
||||
|
||||
func run(op *binOp, req *request) {
|
||||
result := op(req.a, req.b);
|
||||
req.replyc <- result;
|
||||
reply := op(req.a, req.b);
|
||||
req.replyc <- reply;
|
||||
}
|
||||
|
||||
func server(op *binOp, service chan *request) {
|
||||
|
@ -12,8 +12,8 @@ type request struct {
|
||||
type binOp (a, b int) int;
|
||||
|
||||
func run(op *binOp, req *request) {
|
||||
result := op(req.a, req.b);
|
||||
req.replyc <- result;
|
||||
reply := op(req.a, req.b);
|
||||
req.replyc <- reply;
|
||||
}
|
||||
|
||||
func server(op *binOp, service chan *request, quit chan bool) {
|
||||
|
Loading…
Reference in New Issue
Block a user