Skip to content

Commit

Permalink
Fix manual claim that run returns nothing (JuliaLang#40155)
Browse files Browse the repository at this point in the history
  • Loading branch information
adomasbaliuka authored and johanmon committed Jul 5, 2021
1 parent c21a49d commit eb50839
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/src/manual/running-external-programs.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ julia> run(mycommand);
hello
```

The `hello` is the output of the `echo` command, sent to [`stdout`](@ref). The run method itself
returns `nothing`, and throws an [`ErrorException`](@ref) if the external command fails to run
successfully.
The `hello` is the output of the `echo` command, sent to [`stdout`](@ref). If the external command fails to run
successfully, the run method throws an [`ErrorException`](@ref).

If you want to read the output of the external command, [`read`](@ref) or [`readchomp`](@ref)
can be used instead:
Expand Down

0 comments on commit eb50839

Please sign in to comment.