Skip to content

Commit

Permalink
Remove duplicate words / sentences from New() docs.
Browse files Browse the repository at this point in the history
Co-authored-by: Danil Petrov <[email protected]>
  • Loading branch information
jmalloc and danilvpetrov authored Oct 17, 2020
1 parent c7f1062 commit a5837ec
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aggregate.go
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ package dogma
// A command message can cause the creation or destruction of its target
// instance.
type AggregateMessageHandler interface {
// New constructs constructs new aggregate instance initialized with any
// New constructs a new aggregate instance initialized with any
// default values and returns the aggregate root.
//
// Repeated calls SHOULD return a value that is of the same type and
3 changes: 1 addition & 2 deletions process.go
Original file line number Diff line number Diff line change
@@ -27,12 +27,11 @@ import (
// updating a database or invoking an API operation that causes a state change.
// Any such state changes should be communicated via a command message instead.
type ProcessMessageHandler interface {
// New constructs constructs new process instance initialized with any
// New constructs a new process instance initialized with any
// default values and returns the process root.
//
// Repeated calls SHOULD return a value that is of the same type and
// initialized in the same way. The return value MUST NOT be nil.
// New constructs a new process instance and returns its root.
New() ProcessRoot

// Configure produces a configuration for this handler by calling methods on

0 comments on commit a5837ec

Please sign in to comment.