Skip to content

Commit

Permalink
remove redundant print method for Splat (JuliaLang#55494)
Browse files Browse the repository at this point in the history
also a related bugfix by Jameson Nash <vtjnash@gmail.com>
  • Loading branch information
matthias314 authored Aug 18, 2024
1 parent dff0f55 commit 306cee7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions base/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1339,8 +1339,7 @@ struct Splat{F} <: Function
Splat(f) = new{Core.Typeof(f)}(f)
end
(s::Splat)(args) = s.f(args...)
print(io::IO, s::Splat) = print(io, "splat(", s.f, ')')
show(io::IO, s::Splat) = print(io, s)
show(io::IO, s::Splat) = (print(io, "splat("); show(io, s.f); print(io, ")"))

## in and related operators

Expand Down

0 comments on commit 306cee7

Please sign in to comment.