Reformat code example
This commit is contained in:
parent
031c1daf58
commit
63a54986dd
|
@ -3,19 +3,15 @@ module Ameba::Rule::Lint
|
||||||
#
|
#
|
||||||
# For example, this is considered invalid:
|
# For example, this is considered invalid:
|
||||||
#
|
#
|
||||||
# ```
|
# def foo
|
||||||
# def foo
|
# yield 42
|
||||||
# yield 42
|
# end
|
||||||
# end
|
|
||||||
# ```
|
|
||||||
#
|
#
|
||||||
# And has to be written as the following:
|
# And has to be written as the following:
|
||||||
#
|
#
|
||||||
# ```
|
# def foo(&)
|
||||||
# def foo(&)
|
# yield 42
|
||||||
# yield 42
|
# end
|
||||||
# end
|
|
||||||
# ```
|
|
||||||
#
|
#
|
||||||
# YAML configuration example:
|
# YAML configuration example:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue