mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Correct doc syntax
This commit is contained in:
parent
6d9f1c67ed
commit
6cef83f9a9
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# For example, these are considered invalid:
|
||||
#
|
||||
# ```crystal
|
||||
# ```
|
||||
# foo == true
|
||||
# bar != false
|
||||
# false === baz
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# For example, the rule considers these valid:
|
||||
#
|
||||
# ```crystal
|
||||
# ```
|
||||
# unless something
|
||||
# :ok
|
||||
# end
|
||||
|
@ -16,7 +16,7 @@
|
|||
#
|
||||
# But it considers this one invalid as it is an `unless` with an `else`:
|
||||
#
|
||||
# ```crystal
|
||||
# ```
|
||||
# unless something
|
||||
# :one
|
||||
# else
|
||||
|
@ -27,7 +27,7 @@
|
|||
# The solution is to swap the order of the blocks, and change the `unless` to
|
||||
# an `if`, so the previous invalid example would become this:
|
||||
#
|
||||
# ```crystal
|
||||
# ```
|
||||
# if something
|
||||
# :two
|
||||
# else
|
||||
|
|
Loading…
Reference in a new issue