From 82fa955359f84376275de53b356a6c97600f89fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Wed, 25 Mar 2020 19:43:55 +0100 Subject: [PATCH] fix typo in readme --- Cargo.toml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6058f0e..2d8a61d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json_dotpath" -version = "1.0.0" +version = "1.0.1" authors = ["Ondřej Hruška "] edition = "2018" license = "MIT" diff --git a/README.md b/README.md index b41af02..7aae8b1 100644 --- a/README.md +++ b/README.md @@ -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 `