Skip to content

Commit

Permalink
Fix example code in match_hook_args plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Aug 14, 2023
1 parent 67ff312 commit ebef133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/roda/plugins/match_hook_args.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ module RodaPlugins
# # matchers: nil, block_args: nil
# end
#
# r.on 'a', ['b', 'c'], Integer |segment, id|
# r.on 'a', ['b', 'c'], Integer do |segment, id|
# # for a request for /a/b/1
# # matchers: ["a", ["b", "c"], Integer], block_args: ["b", 1]
# end
#
# r.get 'd' |segment, id|
# r.get 'd' do
# # for a request for /d
# # matchers: ["d", term], block_args: []
# end
Expand Down

0 comments on commit ebef133

Please sign in to comment.