Skip to content

Commit

Permalink
Point link in ADR 0004 to the right version of the file (ViewComponen…
Browse files Browse the repository at this point in the history
  • Loading branch information
Spone authored and claudiob committed Dec 22, 2023
1 parent f202733 commit ac84662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/adrs/0004-slots-separate-getter-setter.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ end
c = MyComponent.new

# c.header returns nil because the getter path is being executed due to having
# no arguments and no block passed: https://github.com/viewcomponent/view_component/blob/main/lib/view_component/slotable_v2.rb#L70-L74
# no arguments and no block passed: https://github.com/ViewComponent/view_component/blob/18c27adc7ec715ca05d7ad0299efcbff9f03544b/lib/view_component/slotable_v2.rb#L70-L74
#
c.header.with_content("Hello world!") # undefined method `with_content' for nil:NilClass (NoMethodError)
```
Expand Down

0 comments on commit ac84662

Please sign in to comment.