Skip to content

Commit d981e09

Browse files
authored
Merge pull request #235 from JuliaDiff/ox/fixinplacethunkshow
Fix show on InplaceableThunks
2 parents a3e76b1 + 398ee42 commit d981e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/differentials/thunks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ end
9898
(x::Thunk)() = x.f()
9999
@inline unthunk(x::Thunk) = x()
100100

101-
Base.show(io::IO, x::Thunk) = println(io, "Thunk($(repr(x.f)))")
101+
Base.show(io::IO, x::Thunk) = print(io, "Thunk($(repr(x.f)))")
102102

103103
"""
104104
InplaceableThunk(val::Thunk, add!::Function)
@@ -121,5 +121,5 @@ unthunk(x::InplaceableThunk) = unthunk(x.val)
121121
(x::InplaceableThunk)() = unthunk(x)
122122

123123
function Base.show(io::IO, x::InplaceableThunk)
124-
println(io, "InplaceableThunk($(repr(x.val)), $(repr(x.add!)))")
124+
print(io, "InplaceableThunk($(repr(x.val)), $(repr(x.add!)))")
125125
end

0 commit comments

Comments
 (0)