fix typo in readme

master
Ondřej Hruška 4 years ago
parent f5c65177f9
commit 82fa955359
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      Cargo.toml
  2. 2
      README.md

@ -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"

@ -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`.

Loading…
Cancel
Save