Skip to content

Commit 1a6ff49

Browse files
committed
fix dogoc comments
1 parent e4c69bf commit 1a6ff49

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type ErrorBuilder struct {
1717
isTransparent bool
1818
}
1919

20-
// NewErrorBuilder created error builder from an existing error type
20+
// NewErrorBuilder creates error builder from an existing error type.
2121
func NewErrorBuilder(t *Type) *ErrorBuilder {
2222
getMode := func() callStackBuildMode {
2323
if t.modifiers.CollectStackTrace() {
@@ -92,7 +92,7 @@ func (eb *ErrorBuilder) WithConditionallyFormattedMessage(message string, args .
9292
return eb
9393
}
9494

95-
// Create returns an error with specified params
95+
// Create returns an error with specified params.
9696
func (eb *ErrorBuilder) Create() *Error {
9797
return &Error{
9898
errorType: eb.errorType,

common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package errorx
22

33
var (
4-
// General purpose errors to be used universally
5-
// These errors should typically be used in opaque manner, implying no handing in user code
6-
// When handling is required, it is best to use custom error types with both standard and custom traits
4+
// General purpose errors to be used universally.
5+
// These errors should typically be used in opaque manner, implying no handing in user code.
6+
// When handling is required, it is best to use custom error types with both standard and custom traits.
77
CommonErrors = NewNamespace("common")
88

99
IllegalArgument = CommonErrors.NewType("illegal_argument")

error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77
)
88

9-
// Error is an instance of error object,
9+
// Error is an instance of error object.
1010
// At the moment of creation, Error collects information based on context, creation modifiers and type it belongs to.
1111
// Error is mostly immutable, and distinct errors composition is achieved through wrap.
1212
type Error struct {

0 commit comments

Comments
 (0)