Skip to content

Commit

Permalink
mistake: fix some typos (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
i-pva committed Nov 17, 2020
1 parent 53b3ab6 commit 279efa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (c Changeset) valueChanged(typ reflect.Type, old interface{}, new interface
return !(typ.Comparable() && old == new)
}

// FieldChanged returns true if field exists and it's already chagned.
// FieldChanged returns true if field exists and it's already changed.
// returns false otherwise.
func (c Changeset) FieldChanged(field string) bool {
for i, f := range c.doc.Fields() {
Expand Down
6 changes: 3 additions & 3 deletions iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
)

// Iterator alllows iterating through all record in database in batch.
// Iterator allows iterating through all record in database in batch.
type Iterator interface {
io.Closer
Next(record interface{}) error
Expand Down Expand Up @@ -33,7 +33,7 @@ func (s start) apply(i *iterator) {
i.start = s
}

// Start specfies the primary value to start from (inclusive).
// Start specifies the primary value to start from (inclusive).
func Start(id ...interface{}) IteratorOption {
return start(id)
}
Expand All @@ -44,7 +44,7 @@ func (f finish) apply(i *iterator) {
i.finish = f
}

// Finish specfies the primary value to finish at (inclusive).
// Finish specifies the primary value to finish at (inclusive).
func Finish(id ...interface{}) IteratorOption {
return finish(id)
}
Expand Down

0 comments on commit 279efa7

Please sign in to comment.