Skip to content

Commit 4b03d27

Browse files
matthias314KristofferC
authored and
KristofferC
committed
remove redundant print method for Splat (#55494)
also a related bugfix by Jameson Nash <[email protected]>
1 parent f1c0d97 commit 4b03d27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

base/operators.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -1339,8 +1339,7 @@ struct Splat{F} <: Function
13391339
Splat(f) = new{Core.Typeof(f)}(f)
13401340
end
13411341
(s::Splat)(args) = s.f(args...)
1342-
print(io::IO, s::Splat) = print(io, "splat(", s.f, ')')
1343-
show(io::IO, s::Splat) = print(io, s)
1342+
show(io::IO, s::Splat) = (print(io, "splat("); show(io, s.f); print(io, ")"))
13441343

13451344
## in and related operators
13461345

0 commit comments

Comments
 (0)