Skip to content

Commit

Permalink
README: Fix example (Fix #952)
Browse files Browse the repository at this point in the history
See also the example in test/literate/TESTS.md
  • Loading branch information
minad committed May 29, 2024
1 parent fcb3eea commit cc14f8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ div class="first second third"

~~~ slim
ruby:
def a_unless_current
def self.a_unless_current
@page_current ? {tag: 'span'} : {tag: 'a', href: 'https://slim-template.github.io/'}
end
- @page_current = true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ with the :tag key.

~~~ slim
ruby:
def a_unless_current
def self.a_unless_current
@page_current ? {tag: 'span'} : {tag: 'a', href: 'https://slim-template.github.io/'}
end
- @page_current = true
Expand Down

0 comments on commit cc14f8d

Please sign in to comment.