Skip to content

Commit a897f4c

Browse files
vakhovDifferentialOrange
authored andcommitted
doc: fix example from lua fun
1 parent 48f801c commit a897f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/pairs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ age_sum
174174

175175
```lua
176176
objects = {}
177-
for _, obj in crud.pairs('developers', nil, { use_tomap = true }):map(function(x) return {id = obj.id, name = obj.name, age = obj.age * 2}) do
177+
for _, obj in crud.pairs('developers', nil, { use_tomap = true }):map(function(x) return {id = x.id, name = x.name, age = x.age * 2} end) do
178178
table.insert(objects, obj)
179179
end
180180

0 commit comments

Comments
 (0)