new to &{}

This commit is contained in:
Van 2015-03-18 21:43:29 +08:00
parent eaaee8443a
commit 175901bb93
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ func Recover() {
// stack implements Stack, skipping 2 frames.
func stack() []byte {
buf := new(bytes.Buffer) // the returned data
buf := &bytes.Buffer{} // the returned data
// As we loop, we open files and read them. These variables record the currently
// loaded file.
var lines [][]byte