]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/debug: document that Stack is deprecated
authorRuss Cox <rsc@golang.org>
Sat, 22 Dec 2012 22:23:50 +0000 (17:23 -0500)
committerRuss Cox <rsc@golang.org>
Sat, 22 Dec 2012 22:23:50 +0000 (17:23 -0500)
Fixes #4070.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7004050

src/pkg/runtime/debug/stack.go

index a533a5c3bf48cf42632c9721d42b940c8e27d83a..2896b21417afad5ece2836198dfe2b4fc758cd3d 100644 (file)
@@ -29,6 +29,8 @@ func PrintStack() {
 // For each routine, it includes the source line information and PC value,
 // then attempts to discover, for Go functions, the calling function or
 // method and the text of the line containing the invocation.
+//
+// This function is deprecated. Use package runtime's Stack instead.
 func Stack() []byte {
        return stack()
 }