mirror of
https://github.com/geoffleyland/lua-csv.git
synced 2024-11-23 01:34:19 +00:00
try to fix up formatting in README some more
This commit is contained in:
parent
dc6324a23a
commit
9b2356b559
@ -40,9 +40,9 @@ controlling how the file is read:
|
||||
|
||||
+ `{ word = true }` then the only field in the file would be
|
||||
`{ word = "ONE" }`
|
||||
+ `{ first = { name = "word"} }` then it would be { first = "ONE" }
|
||||
+ `{ word = { transform = string.lower }}` would give { word = "one" }
|
||||
+
|
||||
+ `{ first = { name = "word"} }` then it would be `{ first = "ONE" }`
|
||||
+ `{ word = { transform = string.lower }}` would give `{ word = "one" }`
|
||||
+ finally,
|
||||
{ word = true
|
||||
number = { transform = function(x) return tonumber(x) / 10 end }}
|
||||
would give `{ word = "ONE", number = 1 }`
|
||||
|
Loading…
Reference in New Issue
Block a user