Skip to content

Commit 38392b9

Browse files
committed
Fix function name
1 parent 88cf9b3 commit 38392b9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pperr.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ func Fprint(w io.Writer, err error) {
3434
}
3535

3636
func FprintFunc(w io.Writer, err error, puts Printer) {
37-
for _, e := range extractErrorSet(err, nil) {
37+
for _, e := range extractErrorSets(err, nil) {
3838
puts(w, e.Error, e.Frames, e.Parent)
3939
}
4040
}
4141

42-
func ExtractErrorSet(err error) []ErrorSet {
43-
return extractErrorSet(err, nil)
42+
func ExtractErrorSets(err error) ErrorSets {
43+
return extractErrorSets(err, nil)
4444
}
4545

46-
func extractErrorSet(err error, parent Frames) []ErrorSet {
46+
func extractErrorSets(err error, parent Frames) []ErrorSet {
4747
if err == nil {
4848
return nil
4949
}

pperr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func TestExtractErrorSet(t *testing.T) {
4848
err := f1(true)
4949

5050
var buf strings.Builder
51-
for _, e := range pperr.ExtractErrorSet(err) {
51+
for _, e := range pperr.ExtractErrorSets(err) {
5252
pperr.DefaultPrinter(&buf, e.Error, e.Frames, e.Parent)
5353
}
5454
actual := buf.String()

0 commit comments

Comments
 (0)