Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(174)

Issue 6633050: code review 6633050: bytes: make examples work in playground (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by adg
Modified:
12 years, 5 months ago
Reviewers:
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

bytes: make examples work in playground

Patch Set 1 #

Total comments: 2

Patch Set 2 : diff -r 0558d15b2681 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -4 lines) Patch
M src/pkg/bytes/example_test.go View 1 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 4
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
12 years, 5 months ago (2012-10-10 00:09:33 UTC) #1
bradfitz
LGTM On Tue, Oct 9, 2012 at 5:09 PM, <adg@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > ...
12 years, 5 months ago (2012-10-10 00:10:12 UTC) #2
bradfitz
https://codereview.appspot.com/6633050/diff/1/src/pkg/bytes/example_test.go File src/pkg/bytes/example_test.go (right): https://codereview.appspot.com/6633050/diff/1/src/pkg/bytes/example_test.go#newcode17 src/pkg/bytes/example_test.go:17: b.Write([]byte("world!")) I might change this to: fmt.Fprintf(&b, "World!") to ...
12 years, 5 months ago (2012-10-10 00:11:18 UTC) #3
adg
12 years, 5 months ago (2012-10-10 00:15:47 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=cac6af12528b ***

bytes: make examples work in playground

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6633050

http://codereview.appspot.com/6633050/diff/1/src/pkg/bytes/example_test.go
File src/pkg/bytes/example_test.go (right):

http://codereview.appspot.com/6633050/diff/1/src/pkg/bytes/example_test.go#ne...
src/pkg/bytes/example_test.go:17: b.Write([]byte("world!"))
On 2012/10/10 00:11:18, bradfitz wrote:
> I might change this to:
> 
> fmt.Fprintf(&b, "World!")
> 
> to show that the pointer type is what implements io.Writer.
> 

Good idea. Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b