浏览代码

fix second errors.New example

Dave Cheney 10 年之前
父节点
当前提交
a15b27b2bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      example_test.go

+ 1 - 1
example_test.go

@@ -14,7 +14,7 @@ func ExampleNew() {
 	// Output: whoops
 }
 
-func ExampleNew_Fprint() {
+func ExampleNew_fprint() {
 	err := errors.New("whoops")
 	errors.Fprint(os.Stdout, err)