Skip to content

Commit

Permalink
MemoizedInstanceVariableName: Fix doc typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xtian authored and bbatsov committed Sep 20, 2018
1 parent fce51ea commit 96efd0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/naming/memoized_instance_variable_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module Naming
# @foo ||= calculate_expensive_thing(helper_variable)
# end
#
# @example EnforcedStyleForLeadingUnderscores :required
# @example EnforcedStyleForLeadingUnderscores: required
# # bad
# def foo
# @something ||= calculate_expensive_thing
Expand Down
2 changes: 1 addition & 1 deletion manual/cops_naming.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def foo
@foo ||= calculate_expensive_thing(helper_variable)
end
```
#### EnforcedStyleForLeadingUnderscores :required
#### EnforcedStyleForLeadingUnderscores: required
```ruby
# bad
Expand Down

0 comments on commit 96efd0e

Please sign in to comment.