Skip to content

Commit

Permalink
runtime/debug: document that Stack is deprecated
Browse files Browse the repository at this point in the history
Fixes #4070.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7004050
  • Loading branch information
rsc committed Dec 22, 2012
1 parent 3aed92f commit e49a183
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pkg/runtime/debug/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit e49a183

Please sign in to comment.