Skip to content

Commit

Permalink
Fixes typo
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Pixie authored Mar 12, 2024
1 parent ffde417 commit ebe633b
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 ebe633b

Please sign in to comment.