Skip to content

Commit

Permalink
fix typo (thanks @chronolaw)
Browse files Browse the repository at this point in the history
  • Loading branch information
starwing committed Jun 27, 2023
1 parent 987c5e5 commit 441d662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ print(pb.enum("Color", 2)) --> "Green"

Using `pb.defaults()` to get or set a table with all default values from a message. this table will be used as the metatable of the corresponding decoded message table when setting `use_default_metatable` option.

You could also call `pb.defaults` with `"*map"` or `"*array"` to get the default metatable for map and array when decode a message. This settings will bepass `use_default_metatable` option.
You could also call `pb.defaults` with `"*map"` or `"*array"` to get the default metatable for map and array when decoding a message. These settings will bypass `use_default_metatable` option.

To clear a default metatable, just pass `nil` as second argument to `pb.defaults()`.

Expand Down

0 comments on commit 441d662

Please sign in to comment.