Skip to content

Commit

Permalink
Fix typo (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
cllns committed Apr 5, 2024
1 parent f6dc5be commit 7ace5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view_component/slotable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def set_slot(slot_name, slot_definition = nil, *args, &block)
# 1. If this is a `content_area` style sub-component, we will render the
# block via the `slot`
#
# 2. Since we've to pass block content to components when calling
# 2. Since we have to pass block content to components when calling
# `render`, evaluating the block here would require us to call
# `view_context.capture` twice, which is slower
slot.__vc_content_block = block if block
Expand Down

0 comments on commit 7ace5ee

Please sign in to comment.