Skip to content

Commit 70b0b80

Browse files
authored
Update README.md
1 parent d3fa73b commit 70b0b80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ As an essential part of debug information, stack traces are included in all *err
117117
When an error is passed along, the original stack trace is simply retained, as this typically takes place along the lines if the same frames that were originally captured. When an error is received from another goroutine, use this to add frames that would otherwise be missing:
118118

119119
```go
120-
return EnhanceStackTrace(<-errorChan, "task failed")
120+
return errorx.EnhanceStackTrace(<-errorChan, "task failed")
121121
```
122122

123123
Result would look like this:

0 commit comments

Comments
 (0)