Skip to content

Commit 7aa39b7

Browse files
committed
add context.
1 parent 1aeb445 commit 7aa39b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/stopping_criterion.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function indicates_convergence(sc::StopWhenAll)
105105
return any(indicates_convergence, sc.criteria)
106106
end
107107

108-
function Base.show(io::IO, sc::StopWhenAll)
108+
function Base.show(io::IO, ::MIME"text/plain", sc::StopWhenAll)
109109
s = ""
110110
for sc_i in sc.criteria
111111
s = s * "\n * " * replace("$(sc_i)", "\n" => "\n ") #increase indent
@@ -154,7 +154,7 @@ end
154154
function indicates_convergence(sc::StopWhenAny)
155155
return all(indicates_convergence, sc.criteria)
156156
end
157-
function Base.show(io::IO, sc::StopWhenAny)
157+
function Base.show(io::IO, ::MIME"text/plain", sc::StopWhenAny)
158158
s = ""
159159
for sc_i in sc.criteria
160160
s = s * "\n * " * replace("$(sc_i)", "\n" => "\n ") #increase indent

0 commit comments

Comments
 (0)