Skip to content

Commit

Permalink
Improve code example readability
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Feb 20, 2025
1 parent 86534d7 commit ab2359d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/process/status.cr
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,11 @@ class Process::Status
# Returns a textual description of this process status.
#
# ```
# Process::Status.new(0).description # => "Process exited normally"
# Process.new("sleep", ["10"]).tap(&.terminate).wait.description # => "Process received and didn't handle signal TERM (15)"
# Process::Status.new(0).description # => "Process exited normally"
# process = Process.new("sleep", ["10"])
# process.terminate
# process.wait.description
# # => "Process received and didn't handle signal TERM (15)"
# ```
#
# `ExitReason#description` provides the specific messages for non-signal exits.
Expand Down

0 comments on commit ab2359d

Please sign in to comment.