Skip to content

Commit

Permalink
FastKVMemoryStrategyDefalut -> FastKVMemoryStrategyDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnemecek committed Sep 18, 2018
1 parent a4b0199 commit c299b16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion FastKV/Classes/FastKV.h
Expand Up @@ -19,7 +19,7 @@ typedef NS_ENUM(NSUInteger, FastKVError) {
};

typedef NS_ENUM(NSUInteger, FastKVMemoryStrategy) {
FastKVMemoryStrategyDefalut = 0,
FastKVMemoryStrategyDefault = 0,
FastKVMemoryStrategy1,
};

Expand Down
4 changes: 2 additions & 2 deletions FastKV/Classes/FastKV.m
Expand Up @@ -86,7 +86,7 @@ - (instancetype)initWithFile:(NSString *)path
}

- (instancetype)initWithFile:(NSString *)path {
return [self initWithFile:path memStrategy:FastKVMemoryStrategyDefalut initialMemorySize:FastKVDefaultInitialMMSize];
return [self initWithFile:path memStrategy:FastKVMemoryStrategyDefault initialMemorySize:FastKVDefaultInitialMMSize];
}

- (BOOL)open:(NSString *)file {
Expand Down Expand Up @@ -467,7 +467,7 @@ - (BOOL)reallocMMSizeWithNeededSize:(size_t)neededSize {
- (size_t)_fkvAllocationSizeWithNeededSize:(size_t)neededSize {
size_t allocationSize = neededSize;
switch (_memStrategy) {
case FastKVMemoryStrategyDefalut: {
case FastKVMemoryStrategyDefault: {
allocationSize = FastKVStrategyDefaultAllocationSizeWithNeededSize(neededSize);
break;
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -23,12 +23,12 @@

```
typedef NS_ENUM(NSUInteger, FastKVMemoryStrategy) {
FastKVMemoryStrategyDefalut = 0,
FastKVMemoryStrategyDefault = 0,
FastKVMemoryStrategy1,
};
```

**Doubling** `FastKVMemoryStrategyDefalut`
**Doubling** `FastKVMemoryStrategyDefault`

```
size_t allocationSize = 1;
Expand Down

0 comments on commit c299b16

Please sign in to comment.