mirror of
https://github.com/golang/go.git
synced 2025-05-29 11:25:43 +00: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;
|
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 {
|
|||||||
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user