fix typo in readme

This commit is contained in:
2020-03-25 19:43:55 +01:00
parent f5c65177f9
commit 82fa955359
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "json_dotpath"
version = "1.0.0"
version = "1.0.1"
authors = ["Ondřej Hruška <ondra@ondrovo.com>"]
edition = "2018"
license = "MIT"
+1 -1
View File
@@ -49,7 +49,7 @@ Five principal methods are added by the `DotPaths` trait to `serde_json::Value`,
- `dot_get_mut(path)` - get a mutable reference to an element of the JSON object
- `dot_set(path, value)` - set a new value, dropping the original (if any)
- `dot_replace(path, value)` - set a new value, returning the original (if any)
- `dot_take(path, value)` - remove a value by path, returning it (if any)
- `dot_take(path)` - remove a value by path, returning it (if any)
`dot_set()` supports array manipulation syntax not found in the other methods, namely the
`>n` and `<n` pattern to insert an element before or after an index, shifting the rest of the `Vec`.