Skip to content

Commit

Permalink
Use single quote instead of double quote
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Sep 10, 2017
1 parent 949410f commit c5bf278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/cop/lint/uri_regexp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ module Lint
#
# @example
# # bad
# URI.regexp("http://example.com")
# URI.regexp('http://example.com')
#
# # good
# URI::DEFAULT_PARSER.make_regexp("http://example.com")
# URI::DEFAULT_PARSER.make_regexp('http://example.com')
#
class UriRegexp < Cop
MSG = 'Use `%<top_level>sURI::DEFAULT_PARSER.make_regexp%<arg>s` ' \
Expand Down
4 changes: 2 additions & 2 deletions manual/cops_lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -2050,10 +2050,10 @@ can be replaced by `URI::DEFAULT_PARSER.make_regexp`.

```ruby
# bad
URI.regexp("http://example.com")
URI.regexp('http://example.com')

# good
URI::DEFAULT_PARSER.make_regexp("http://example.com")
URI::DEFAULT_PARSER.make_regexp('http://example.com')
```

## Lint/UselessAccessModifier
Expand Down

0 comments on commit c5bf278

Please sign in to comment.