Permalink
Browse files

Clarify interface example with changes to text output.

  • Loading branch information...
1 parent 1740d5d commit 8476ff681414a6ccc5dd7f0beb19a885e8a31949 @gmallard committed Jul 1, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 interface_04/interface_04.go
@@ -58,14 +58,14 @@ func main() {
fmt.Println("dTwo.its:", dTwo.its)
// ImpOne leaves data alone
- _ = dOne.Put("newdone")
+ _ = dOne.Put("1time")
w, _ := dOne.Get()
- fmt.Println("dOnePutGet", w)
+ fmt.Println("dOnePutGet", "1time", w)
// ImpTwo munges the data
- _ = dTwo.Put("9999")
+ _ = dTwo.Put("1time")
w, _ = dTwo.Get()
- fmt.Println("dTwoPutGet", w)
+ fmt.Println("dTwoPutGet", "1time", w)
// An array of Gaps
ga := [...]Gap{dOne, dTwo}

0 comments on commit 8476ff6

Please sign in to comment.