Skip to content

Commit 292976d

Browse files
authored
Merge pull request #1780 from glaucocustodio/patch-1
Fix example
2 parents fd53891 + 798b385 commit 292976d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ parameter, and the return value must match the given `type`.
935935

936936
```ruby
937937
params do
938-
requires :passwd, type: String, coerce_with: Base64.method(:decode)
938+
requires :passwd, type: String, coerce_with: Base64.method(:decode64)
939939
requires :loud_color, type: Color, coerce_with: ->(c) { Color.parse(c.downcase) }
940940

941941
requires :obj, type: Hash, coerce_with: JSON do

0 commit comments

Comments
 (0)