Skip to content

Commit

Permalink
fixed typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Jul 8, 2022
1 parent 9530e56 commit e986848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (s *Store[T]) Set(key string, value T) {

// SetIfLessThanLimit sets (or overwrite if already exist) a new value for key.
//
// This is method is similar to Set() but **it will skip adding new elements**
// This method is similar to Set() but **it will skip adding new elements**
// to the store if the store length has reached the specified limit.
// `false` is returned if maxAllowedElements limit is reached.
func (s *Store[T]) SetIfLessThanLimit(key string, value T, maxAllowedElements int) bool {
Expand Down

0 comments on commit e986848

Please sign in to comment.