From 786381c762031db5cec030df172311911492740b Mon Sep 17 00:00:00 2001 From: Alok Swamy Date: Fri, 5 Sep 2025 16:43:48 -0400 Subject: [PATCH] Update liquid docs for loop's named params --- lib/liquid/tags/for.rb | 4 ++-- lib/liquid/tags/table_row.rb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/liquid/tags/for.rb b/lib/liquid/tags/for.rb index 27af15bf..6aa308f1 100644 --- a/lib/liquid/tags/for.rb +++ b/lib/liquid/tags/for.rb @@ -20,8 +20,8 @@ module Liquid # @liquid_syntax_keyword variable The current item in the array. # @liquid_syntax_keyword array The array to iterate over. # @liquid_syntax_keyword expression The expression to render for each iteration. - # @liquid_optional_param limit [number] The number of iterations to perform. - # @liquid_optional_param offset [number] The 1-based index to start iterating at. + # @liquid_optional_param limit: [number] The number of iterations to perform. + # @liquid_optional_param offset: [number] The 1-based index to start iterating at. # @liquid_optional_param range [untyped] A custom numeric range to iterate over. # @liquid_optional_param reversed [untyped] Iterate in reverse order. class For < Block diff --git a/lib/liquid/tags/table_row.rb b/lib/liquid/tags/table_row.rb index d59791ce..6767e4fb 100644 --- a/lib/liquid/tags/table_row.rb +++ b/lib/liquid/tags/table_row.rb @@ -19,9 +19,9 @@ module Liquid # @liquid_syntax_keyword variable The current item in the array. # @liquid_syntax_keyword array The array to iterate over. # @liquid_syntax_keyword expression The expression to render. - # @liquid_optional_param cols [number] The number of columns that the table should have. - # @liquid_optional_param limit [number] The number of iterations to perform. - # @liquid_optional_param offset [number] The 1-based index to start iterating at. + # @liquid_optional_param cols: [number] The number of columns that the table should have. + # @liquid_optional_param limit: [number] The number of iterations to perform. + # @liquid_optional_param offset: [number] The 1-based index to start iterating at. # @liquid_optional_param range [untyped] A custom numeric range to iterate over. class TableRow < Block Syntax = /(\w+)\s+in\s+(#{QuotedFragment}+)/o