Skip to content

Commit

Permalink
Fixup method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Oct 17, 2023
1 parent 962b4b4 commit 5305032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/error.cr
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class IO
"#{message} (#{target})"
end

def initialize(message, *, target = nil)
def initialize(message : String? = nil, *, target = nil)
@target = target.try(&.to_s)

super message
Expand Down

0 comments on commit 5305032

Please sign in to comment.