summaryrefslogtreecommitdiff
path: root/serde_v8/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'serde_v8/README.md')
-rw-r--r--serde_v8/README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/serde_v8/README.md b/serde_v8/README.md
index 2a9169681..d36f69375 100644
--- a/serde_v8/README.md
+++ b/serde_v8/README.md
@@ -29,9 +29,9 @@ nested HashMaps), so when writing ops we recommend directly using rust
structs/tuples or primitives, since mapping to `serde_json::Value` will add
extra overhead and result in slower ops.
-I also recommend avoiding unecessary "wrappers", if your op takes a single-keyed
-struct, consider unwrapping that as a plain value unless you plan to add fields
-in the near-future.
+I also recommend avoiding unnecessary "wrappers", if your op takes a
+single-keyed struct, consider unwrapping that as a plain value unless you plan
+to add fields in the near-future.
Instead of returning "nothing" via `Ok(json!({}))`, change your return type to
rust's unit type `()` and returning `Ok(())`, `serde_v8` will efficiently encode