summaryrefslogtreecommitdiff
path: root/serde_v8/README.md
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-06-26 15:10:27 +0200
committerGitHub <noreply@github.com>2023-06-26 09:10:27 -0400
commit801b9ec62d94f201e67d053ee90dae0b70e50a42 (patch)
tree145f840c570dd72258ef309e9d31f100a5aa5786 /serde_v8/README.md
parentad3c494b46c97f0cf91098b7ec2afa576ea7a3dd (diff)
chore: fix typos (#19572)
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