Skip to content

Commit

Permalink
Merge pull request #8861 from koic/fix_an_example_for_format_string_t…
Browse files Browse the repository at this point in the history
…oken

Fix an example for `Style/FormatStringToken`
  • Loading branch information
koic committed Oct 8, 2020
2 parents e563130 + d3f08ba commit ffeb697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_style.adoc
Expand Up @@ -3405,7 +3405,7 @@ format('%{greeting}', greeting: 'Hello')
----
# bad
format('%<greeting>s', greeting: 'Hello')
format('%{greeting}', 'Hello')
format('%{greeting}', greeting: 'Hello')
# good
format('%s', 'Hello')
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/style/format_string_token.rb
Expand Up @@ -33,7 +33,7 @@ module Style
#
# # bad
# format('%<greeting>s', greeting: 'Hello')
# format('%{greeting}', 'Hello')
# format('%{greeting}', greeting: 'Hello')
#
# # good
# format('%s', 'Hello')
Expand Down

0 comments on commit ffeb697

Please sign in to comment.