Update README.md

This commit is contained in:
Enrique García 2014-09-20 16:14:47 +02:00
parent 0997a4e846
commit 334e5cb68f

View File

@ -124,7 +124,7 @@ assert(inspect(t5, {depth = 2}) == [[{
`options.depth` defaults to infinite (`math.huge`). `options.depth` defaults to infinite (`math.huge`).
### options.newline & options.indent #### options.newline & options.indent
These are the strings used by `inspect` to respectively add a newline and indent each level of a table. These are the strings used by `inspect` to respectively add a newline and indent each level of a table.
@ -142,7 +142,7 @@ assert(inspect(t) == [[{
assert(inspect(t, {newline='@', indent="++"}), "{@++a = {@++++b = 1@++}@}" assert(inspect(t, {newline='@', indent="++"}), "{@++a = {@++++b = 1@++}@}"
``` ```
### options.process #### options.process
`options.process` is a function which allow altering the passed object before transforming it into a string. `options.process` is a function which allow altering the passed object before transforming it into a string.
A typical way to use it would be to remove certain values so that they don't appear at all. A typical way to use it would be to remove certain values so that they don't appear at all.