diff --git a/src/ameba/rule/typing/macro_call_var_type_restriction.cr b/src/ameba/rule/typing/macro_call_var_type_restriction.cr index 524682e3e..d082ef39c 100644 --- a/src/ameba/rule/typing/macro_call_var_type_restriction.cr +++ b/src/ameba/rule/typing/macro_call_var_type_restriction.cr @@ -1,32 +1,32 @@ module Ameba::Rule::Typing # A rule that enforces variable arguments to certain macros have a type restriction. # - # For example, these are considered valid: + # For example, these are considered invalid: # # ``` # class Greeter - # getter name : String? - # class_getter age : Int32 = 0 - # setter tasks : Array(String) = [] of String - # class_setter queue : Array(Int32)? - # property task_mutex : Mutex = Mutex.new - # class_property asdf : String - + # getter name + # # record Task, # var1 : String, - # var2 : String = "asdf" + # var2 = "asdf" # end # ``` # - # And these are considered invalid: + # And these are considered valid: # # ``` # class Greeter - # getter name - # + # getter name : String? + # class_getter age : Int32 = 0 + # setter tasks : Array(String) = [] of String + # class_setter queue : Array(Int32)? + # property task_mutex : Mutex = Mutex.new + # class_property asdf : String + # record Task, # var1 : String, - # var2 = "asdf" + # var2 : String = "asdf" # end # ``` #