From 1399aa3cdfe907637d2e9253e75a932f28615f3a Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Wed, 23 Nov 2022 16:15:46 +0100 Subject: [PATCH] Doc fixes --- src/ameba/rule/layout/trailing_whitespace.cr | 2 +- src/ameba/rule/lint/redundant_with_index.cr | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ameba/rule/layout/trailing_whitespace.cr b/src/ameba/rule/layout/trailing_whitespace.cr index 471f3795..48561a96 100644 --- a/src/ameba/rule/layout/trailing_whitespace.cr +++ b/src/ameba/rule/layout/trailing_whitespace.cr @@ -9,7 +9,7 @@ module Ameba::Rule::Layout # ``` class TrailingWhitespace < Base properties do - description "Disallows trailing whitespaces" + description "Disallows trailing whitespace" end MSG = "Trailing whitespace detected" diff --git a/src/ameba/rule/lint/redundant_with_index.cr b/src/ameba/rule/lint/redundant_with_index.cr index 6f622986..5ae815b5 100644 --- a/src/ameba/rule/lint/redundant_with_index.cr +++ b/src/ameba/rule/lint/redundant_with_index.cr @@ -2,6 +2,7 @@ module Ameba::Rule::Lint # A rule that disallows redundant `with_index` calls. # # For example, this is considered invalid: + # # ``` # collection.each.with_index do |e| # # ...