Skip to content

Commit

Permalink
[Fix #12526] Fix incorrect rendering typos
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Dec 10, 2023
1 parent b1bcb31 commit a0e1042
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ module Lint
# Checks for places where binary operator has identical operands.
#
# It covers arithmetic operators: `-`, `/`, `%`;
# comparison operators: `==`, `===`, `=~`, `>`, `>=`, `<`, `<=`;
# comparison operators: `==`, `===`, `=~`, `>`, `>=`, `<`, ``<=``;
# bitwise operators: `|`, `^`, `&`;
# boolean operators: `&&`, `||`
# and "spaceship" operator - `<=>`.
# and "spaceship" operator - ``<=>``.
#
# Simple arithmetic operations are allowed by this cop: `+`, `*`, `**`, `<<` and `>>`.
# Although these can be rewritten in a different way, it should not be necessary to
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module Lint
# Checks for overwriting an exception with an exception result by use `rescue =>`.
# Checks for overwriting an exception with an exception result by use ``rescue =>``.
#
# You intended to write as `rescue StandardError`.
# However, you have written `rescue => StandardError`.
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/lint/number_conversion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Lint
#
# Conversion with `Integer`, `Float`, etc. will raise an `ArgumentError`
# if given input that is not numeric (eg. an empty string), whereas
# `to_i`, etc. will try to convert regardless of input (`''.to_i => 0`).
# `to_i`, etc. will try to convert regardless of input (``''.to_i => 0``).
# As such, this cop is disabled by default because it's not necessarily
# always correct to raise if a value is not numeric.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/lint/useless_times.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module RuboCop
module Cop
module Lint
# Checks for uses of `Integer#times` that will never yield
# (when the integer <= 0) or that will only ever yield once
# (when the integer ``<= 0``) or that will only ever yield once
# (`1.times`).
#
# @safety
Expand Down
6 changes: 3 additions & 3 deletions lib/rubocop/cop/metrics/abc_size.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ module Metrics
#
# Interpreting ABC size:
#
# * <= 17 satisfactory
# * 18..30 unsatisfactory
# * > 30 dangerous
# * ``<= 17`` satisfactory
# * `18..30` unsatisfactory
# * `>` 30 dangerous
#
# You can have repeated "attributes" calls count as a single "branch".
# For this purpose, attributes are any method with no argument; no attempt
Expand Down
4 changes: 2 additions & 2 deletions lib/rubocop/cop/style/operator_method_call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module RuboCop
module Cop
module Style
# Checks for redundant dot before operator method call.
# The target operator methods are `|`, `^`, `&`, `<=>`, `==`, `===`, `=~`, `>`, `>=`, `<`,
# `<=`, `<<`, `>>`, `+`, `-`, `*`, `/`, `%`, `**`, `~`, `!`, `!=`, and `!~`.
# The target operator methods are `|`, `^`, `&`, ``<=>``, `==`, `===`, `=~`, `>`, `>=`, `<`,
# ``<=``, `<<`, `>>`, `+`, `-`, `*`, `/`, `%`, `**`, `~`, `!`, `!=`, and `!~`.
#
# @example
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/style/redundant_sort.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Style
# This cop is unsafe, because `sort...last` and `max` may not return the
# same element in all cases.
#
# In an enumerable where there are multiple elements where `a <=> b == 0`,
# In an enumerable where there are multiple elements where ``a <=> b == 0``,
# or where the transformation done by the `sort_by` block has the
# same result, `sort.last` and `max` (or `sort_by.last` and `max_by`)
# will return different elements. `sort.last` will return the last
Expand Down

0 comments on commit a0e1042

Please sign in to comment.