mirror of
https://github.com/kikito/inspect.lua.git
synced 2024-12-15 14:34:21 +00:00
typo fix (#61)
This commit is contained in:
parent
9c8a68da30
commit
bac593278b
@ -181,7 +181,7 @@ end
|
|||||||
assert(inspect(t, {process = remove_mt}) == "{ 1, 2, 3 }")
|
assert(inspect(t, {process = remove_mt}) == "{ 1, 2, 3 }")
|
||||||
```
|
```
|
||||||
|
|
||||||
The previous exaple only works for a particular metatable. If you want to make *all* metatables, you can use the `path` parameter to check
|
The previous example only works for a particular metatable. If you want to make *all* metatables, you can use the `path` parameter to check
|
||||||
wether the last element is `inspect.METATABLE`, and return `nil` instead of the item:
|
wether the last element is `inspect.METATABLE`, and return `nil` instead of the item:
|
||||||
|
|
||||||
``` lua
|
``` lua
|
||||||
|
Loading…
Reference in New Issue
Block a user