Skip to content

Commit

Permalink
enhance/fix_readme_code_sample
Browse files Browse the repository at this point in the history
- Fix code sample in the readme file, as refactoring of kstore-file api has changed storeOf() function parameter from filePath:String to file:Path
  • Loading branch information
ranger163 committed Dec 25, 2023
1 parent 51556d6 commit dc656ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Inspired by [RxStore](https://github.com/Gridstone/RxStore)
@Serializable data class Pet(val name: String, val age: Int)

// Create a store
val store: KStore<Pet> = storeOf(filePath = "path/to/my_cats.json")
val store: KStore<Pet> = storeOf(file = "path/to/my_cats.json".toPath())

// Get, set, update or delete values
val mylo: Pet? = store.get()
Expand Down

0 comments on commit dc656ec

Please sign in to comment.