diff --git a/base/interactiveutil.jl b/base/interactiveutil.jl index 3db65c1f32892..d6e8648f120fc 100644 --- a/base/interactiveutil.jl +++ b/base/interactiveutil.jl @@ -677,7 +677,7 @@ function whos(io::IO=STDOUT, m::Module=current_module(), pattern::Regex=r"") value = getfield(m, v) @printf head "%30s " s try - if s ∈ ("Base", "Main", "Core") + if value ∈ (Base, Main, Core) print(head, " ") else bytes = summarysize(value)