]> Cypherpunks repositories - gostls13.git/commitdiff
rpc: fix typo in documentation client example
authorDavid G. Andersen <dave.andersen@gmail.com>
Sun, 25 Sep 2011 04:19:08 +0000 (14:19 +1000)
committerAndrew Gerrand <adg@golang.org>
Sun, 25 Sep 2011 04:19:08 +0000 (14:19 +1000)
The example incorrectly dereferenced an integer variable

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5129041

src/pkg/rpc/server.go

index 74507442862326d561bff71a86ceedac3f3f0905..f03710061a4cc4943fc0ac2d0bdaea3218785a9f 100644 (file)
@@ -97,7 +97,7 @@
                if err != nil {
                        log.Fatal("arith error:", err)
                }
-               fmt.Printf("Arith: %d*%d=%d", args.A, args.B, *reply)
+               fmt.Printf("Arith: %d*%d=%d", args.A, args.B, reply)
 
        or