Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Fredrik Ekre <[email protected]>
  • Loading branch information
c42f and fredrikekre committed Apr 30, 2020
1 parent ccb7f6e commit 40962c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base/docs/basedocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -648,13 +648,14 @@ kw"if", kw"elseif", kw"else"
a ? b : c
Short form for conditionals; read "if `a`, evaluate `b` otherwise evaluate `c`".
Also known as the
[ternary operator](https://docs.julialang.org/en/v1/manual/control-flow/#man-conditional-evaluation-1).
Also known as the [ternary operator](https://en.wikipedia.org/wiki/%3F:).
This syntax is equivalent to `if a; b else c end`, but is often used to
emphasize the value `b`-or-`c` which is being used as part of a larger
expression, rather than the side effects that evaluating `b` or `c` may have.
See the manual section on [control flow](https://docs.julialang.org/en/v1/manual/control-flow/#man-conditional-evaluation-1) for more details.
# Examples
```
julia> x = 1
Expand Down

0 comments on commit 40962c7

Please sign in to comment.