Skip to content

Commit

Permalink
[DOC] Improve the docstrings for quit() and exit()
Browse files Browse the repository at this point in the history
  • Loading branch information
iglpdc committed Aug 17, 2017
1 parent 6898379 commit f74b856
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions base/initdefs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ const ARGS = String[]
"""
exit([code])
Quit (or control-D at the prompt). The default exit code is zero, indicating that the
processes completed successfully.
Quit the program with an exit code. The default exit code is zero, indicating that the
program completed successfully (see also [`quit`](@ref)).
"""
exit(n) = ccall(:jl_exit, Void, (Int32,), n)
exit() = exit(0)

"""
quit()
Quit the program indicating that the processes completed successfully. This function calls
`exit(0)` (see [`exit`](@ref)).
Quit the program indicating successful completion. This function is equivalent to
`exit(0)` (see [`exit`](@ref)). In an interactive session, `quit()` can be called by
typing the control key together with the `d` key.
"""
quit() = exit()

Expand Down

0 comments on commit f74b856

Please sign in to comment.