Skip to content

Commit

Permalink
Merge pull request #463 from backpackerhh/patch-1
Browse files Browse the repository at this point in the history
Fix typo in Custom Type Builders page
  • Loading branch information
flash-gordon authored Nov 20, 2023
2 parents 7affdb8 + fc77516 commit 3f3a6be
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 3f3a6be

Please sign in to comment.