From 6cef83f9a9cfe701f1080b83b066295f1036cfb6 Mon Sep 17 00:00:00 2001 From: Vitalii Elenhaupt Date: Tue, 31 Oct 2017 23:31:56 +0200 Subject: [PATCH] Correct doc syntax --- src/ameba/rules/comparison_to_boolean.cr | 2 +- src/ameba/rules/unless_else.cr | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ameba/rules/comparison_to_boolean.cr b/src/ameba/rules/comparison_to_boolean.cr index 4bf6cedd..af4e5aaa 100644 --- a/src/ameba/rules/comparison_to_boolean.cr +++ b/src/ameba/rules/comparison_to_boolean.cr @@ -2,7 +2,7 @@ # # For example, these are considered invalid: # -# ```crystal +# ``` # foo == true # bar != false # false === baz diff --git a/src/ameba/rules/unless_else.cr b/src/ameba/rules/unless_else.cr index 3e98a63b..7e46c917 100644 --- a/src/ameba/rules/unless_else.cr +++ b/src/ameba/rules/unless_else.cr @@ -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