Skip to content

Commit

Permalink
Update unused_generic_or_union_spec.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
  • Loading branch information
nobodywasishere and Sija authored Jan 26, 2025
1 parent 475c3b5 commit 7841e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ameba/rule/lint/unused_generic_or_union_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Ameba::Rule::Lint
CRYSTAL
end

it "passes if generics and unions are used for methods" do
it "passes if generics and unions are used for method arguments and return type" do
expect_no_issues subject, <<-CRYSTAL
def size(a : Float64?) : Float64?
0.1.try(&.+(a))
Expand Down

0 comments on commit 7841e1b

Please sign in to comment.