瀏覽代碼

update godoc

Dave Cheney 9 年之前
父節點
當前提交
7f46da032a
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      errors.go

+ 5 - 1
errors.go

@@ -49,9 +49,13 @@
 // invoked. This information can be retrieved with the following interface.
 //
 //     type Stacktrace interface {
-//             Stacktrace() []Frame
+//             Stacktrace() errors.Stacktrace
 //     }
 //
+// Where errors.Stacktrace is defined as
+//
+//     type Stacktrace []Frame
+//
 // The Frame type represents a call site in the stacktrace. Frame supports
 // the fmt.Formatter interface that can be used for printing information about
 // the stacktrace of this error. For example: