mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-10 22:08:07 +01:00
fixed typo in comment
This commit is contained in:
1 parent
9530e56430
commit
e986848a7a
1 file changed
+1
-1
@@ -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.
|
// 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.
|
// to the store if the store length has reached the specified limit.
|
||||||
// `false` is returned if maxAllowedElements limit is reached.
|
// `false` is returned if maxAllowedElements limit is reached.
|
||||||
func (s *Store[T]) SetIfLessThanLimit(key string, value T, maxAllowedElements int) bool {
|
func (s *Store[T]) SetIfLessThanLimit(key string, value T, maxAllowedElements int) bool {
|
||||||
|
|||||||
Reference in new issue
Block a user