Skip to content

Commit d3100cc

Browse files
committed
fix package docs
1 parent d9b805b commit d3100cc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

errors.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
//
77
// This package is based on well known github.com/pkg/errors. Key differences and features:
88
//
9-
// - errors.New() is an alias to standard library and (it does not add a stack trace) and
10-
// should be used to create sentinel package-level errors;
11-
// - minimalistic API: few methods to wrap an error: errors.Errorf(), errors.Wrap();
12-
// - adds stack trace idempotently (only once in a chain);
13-
// - options to skip caller in a stack trace and to add error fields for structured logging;
14-
// - error fields are made for the statically typed logger interface;
15-
// - package errors can be easily marshaled into JSON with all fields in a chain.
9+
// - errors.New() is an alias to standard library and (it does not add a stack trace) and
10+
// should be used to create sentinel package-level errors;
11+
// - minimalistic API: few methods to wrap an error: errors.Errorf(), errors.Wrap();
12+
// - adds stack trace idempotently (only once in a chain);
13+
// - options to skip caller in a stack trace and to add error fields for structured logging;
14+
// - error fields are made for the statically typed logger interface;
15+
// - package errors can be easily marshaled into JSON with all fields in a chain.
1616
package errors
1717

1818
import (

0 commit comments

Comments
 (0)