new to &{}
This commit is contained in:
parent
eaaee8443a
commit
175901bb93
|
@ -44,7 +44,7 @@ func Recover() {
|
||||||
|
|
||||||
// stack implements Stack, skipping 2 frames.
|
// stack implements Stack, skipping 2 frames.
|
||||||
func stack() []byte {
|
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
|
// As we loop, we open files and read them. These variables record the currently
|
||||||
// loaded file.
|
// loaded file.
|
||||||
var lines [][]byte
|
var lines [][]byte
|
||||||
|
|
Loading…
Reference in New Issue