Skip to content

Commit

Permalink
Fix bad example code in class_matchers plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed May 23, 2023
1 parent cfb5bb4 commit e29236c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roda/plugins/class_matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module RodaPlugins
# block return nil or false. This is useful if you want to make sure you
# are using valid data:
#
# class_matcher(Date, /(\dd\d)-(\d\d)-(\d\d)/) do |y, m, d|
# class_matcher(Date, /(\d\d\d\d)-(\d\d)-(\d\d)/) do |y, m, d|
# y = y.to_i
# m = m.to_i
# d = d.to_i
Expand Down

0 comments on commit e29236c

Please sign in to comment.