From ee3d51423c1347d84f0f3b4ad0114510048e4bfe Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Wed, 31 Jul 2024 14:25:07 -0700 Subject: [PATCH] Fix example code in typecast_params plugin --- lib/roda/plugins/typecast_params.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roda/plugins/typecast_params.rb b/lib/roda/plugins/typecast_params.rb index cab3d985..e69b6b5f 100644 --- a/lib/roda/plugins/typecast_params.rb +++ b/lib/roda/plugins/typecast_params.rb @@ -735,7 +735,7 @@ def convert_each!(opts=OPTS, &block) # You can use +dig+ to get access to nested arrays by using :array or :array! as # the first argument and providing the type in the second argument: # - # tp.dig(:array, :pos_int, 'foo', 'bar', 'baz') # tp['foo']['bar'].array(:int, 'baz') + # tp.dig(:array, :pos_int, 'foo', 'bar', 'baz') # tp['foo']['bar'].array(:pos_int, 'baz') def dig(type, *nest, key) _dig(false, type, nest, key) end