summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAvahe Kellenberger <avahe@protonmail.ch>2020-05-12 02:28:10 -0400
committerGitHub <noreply@github.com>2020-05-12 08:28:10 +0200
commit55446c05a4ed726a6aa26bdf5f0da1db5ad7d5f1 (patch)
treeeef7baf49d8d269cfd32984e85faba447ed2110e /doc
parentb8ec07f19e3fdeb2f86591c0e5f6af1a87063cf3 (diff)
downloadNim-55446c05a4ed726a6aa26bdf5f0da1db5ad7d5f1.tar.gz
Added a reference to ternary operators. (#14309)
`if expressions` are similar to ternary operators in other languages.
In order to make this easier to find in the manual, I've added a
sentence about it.
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index 6feb8aebb..82678f40e 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -3128,6 +3128,7 @@ If expression
 -------------
 
 An `if expression` is almost like an if statement, but it is an expression.
+This feature is similar to `ternary operators` in other languages.
 Example:
 
 .. code-block:: nim