소스 검색

Fix error during merge

Signed-off-by: Dave Cheney <dave@cheney.net>
Dave Cheney 7 년 전
부모
커밋
ee4766c291
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      stack.go

+ 1 - 1
stack.go

@@ -49,7 +49,7 @@ func (f Frame) format(w io.Writer, s fmt.State, verb rune) {
 			if file == "" {
 				file = "unknown"
 			}
-			io.WriteString(s, path.Base(file))
+			io.WriteString(w, path.Base(file))
 		}
 	case 'd':
 		io.WriteString(w, strconv.Itoa(runtime.Frame(f).Line))