Skip to content

Commit

Permalink
examples/stroage: use &bytes.Buffer{}
Browse files Browse the repository at this point in the history
bytes.NewBuffer(nil) is not as nice.

Change-Id: Ief404f3dc4a655fe1e4dea8fbe5be940acaca671
Reviewed-on: https://code-review.googlesource.com/4781
Reviewed-by: Dave Day <[email protected]>
  • Loading branch information
okdave committed May 18, 2016
1 parent e037998 commit 426f71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/storage/appenginevm/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Demo GCS Application running from Version: %v\n", appengine.VersionID(ctx))
fmt.Fprintf(w, "Using bucket name: %v\n\n", bucket)

buf := bytes.NewBuffer(nil)
buf := &bytes.Buffer{}
d := &demo{
w: buf,
ctx: ctx,
Expand Down

0 comments on commit 426f71c

Please sign in to comment.