Skip to content

Commit 5be5751

Browse files
committed
fix dogoc comments
1 parent 7da28cb commit 5be5751

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

readme.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
// Here errorx.Decorate is used to add more information,
3535
// and syntax like errorx.IsOfType can still be used to check the original error.
3636
// This error also holds a stack trace captured at the point of creation.
37-
// With errorx syntax, any of this may be customized: stack trace omitted, error type hidden.
37+
// With errorx syntax, any of this may be customized: stack trace can be omitted, error type can be hidden.
3838
// Type can be further customized with Traits, and error with Properties.
39-
// Package provide a utility functions to compose, switch over, check, and ignore errors based on their types and properties.
39+
// Package provides utility functions to compose, switch over, check, and ignore errors based on their types and properties.
4040
//
4141
// See documentation for Error, Type and Namespace for more details.
4242
package errorx

registry.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import "sync"
66
// This may be used to create a user-defined registry, for example, to check if all type names are unique.
77
// ISSUE: if .ApplyModifiers is called for a type/namespace, callback still receives a value without those modifiers.
88
type TypeSubscriber interface {
9-
// Method is called exactly once for each namespace
9+
// OnNamespaceCreated is called exactly once for each namespace
1010
OnNamespaceCreated(namespace Namespace)
11-
// Method is called exactly once for each type
11+
// OnTypeCreated is called exactly once for each type
1212
OnTypeCreated(t *Type)
1313
}
1414

0 commit comments

Comments
 (0)