mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Reformat code example
This commit is contained in:
parent
031c1daf58
commit
63a54986dd
1 changed files with 6 additions and 10 deletions
|
@ -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 a new issue