From 4e19571fb3f2712b7237a0d8dbfa4b6a7c7d2062 Mon Sep 17 00:00:00 2001 From: Vitalii Elenhaupt Date: Wed, 26 Dec 2018 10:57:06 +0200 Subject: [PATCH] Correct VariableNames doc example --- src/ameba/rule/style/variable_names.cr | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/ameba/rule/style/variable_names.cr b/src/ameba/rule/style/variable_names.cr index 84ffdebe..23e858ff 100644 --- a/src/ameba/rule/style/variable_names.cr +++ b/src/ameba/rule/style/variable_names.cr @@ -4,17 +4,9 @@ module Ameba::Rule::Style # For example, these variable names are considered valid: # # ``` - # class Greeting - # @@default_greeting = "Hello world" - # - # def initialize(@custom_greeting = nil) - # end - # - # def print_greeting - # greeting = @custom_greeting || @@default_greeting - # puts greeting - # end - # end + # var_name = 1 + # name = 2 + # _another_good_name = 3 # ``` # # And these are invalid method names: