Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent function calling conventions in docs #7

Merged
merged 10 commits into from
May 19, 2024
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ assert(not is_valid) -- false, too long

local unique_strings = valid.arrayof(valid.string(), {unique = true})

local is_valid = unique_strings({"a", "b", "c"})
local is_valid = unique_strings {"a", "b", "c"}
assert(is_valid) -- true

local is_valid = unique_strings({"a", "b", "c", "c"})
local is_valid = unique_strings {"a", "b", "c", "c"}
assert(not is_valid) -- false, values are not unique
```

Expand Down Expand Up @@ -359,7 +359,7 @@ local valid_person = valid.map {
}
}

local valid_people_map = valid.mapof({valid.string, valid_person})
local valid_people_map = valid.mapof {valid.string, valid_person}

local people_data = {
alice = {name = "Alice", age = 30},
Expand Down
Loading