Skip to content

Commit

Permalink
note that REPL doesn't show "nothing" values (#53930)
Browse files Browse the repository at this point in the history
It seemed worth documenting that display of `nothing` is suppressed by
the REPL (and similar environments, e.g. IJulia).
  • Loading branch information
stevengj authored Apr 3, 2024
1 parent e99627f commit 94f887b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/docs/basedocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,8 @@ Nothing
The singleton instance of type [`Nothing`](@ref), used by convention when there is no value to return
(as in a C `void` function) or when a variable or field holds no value.
A return value of `nothing` is not displayed by the REPL and similar interactive environments.
See also: [`isnothing`](@ref), [`something`](@ref), [`missing`](@ref).
"""
nothing
Expand Down

0 comments on commit 94f887b

Please sign in to comment.