Skip to content

Commit

Permalink
Merge pull request #470 from d-Pixie/patch-1
Browse files Browse the repository at this point in the history
Fixes typo
  • Loading branch information
flash-gordon authored Mar 12, 2024
2 parents ffde417 + ebe633b commit fdc3f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docsite/source/custom-type-builders.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ It is idiomatic to construct new types based on existing.
```ruby
source_type = Dry::Types['integer']
constructor_type = source_type.constructor(Kernel.method(:Integer))
consrained_type = constructor_type.constrained(gteq: 18)
constrained_type = constructor_type.constrained(gteq: 18)
```

This API can be extended with `Dry::Types.define_builder`
Expand Down

0 comments on commit fdc3f26

Please sign in to comment.