From 55446c05a4ed726a6aa26bdf5f0da1db5ad7d5f1 Mon Sep 17 00:00:00 2001 From: Avahe Kellenberger Date: Tue, 12 May 2020 02:28:10 -0400 Subject: [PATCH] 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. --- doc/manual.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/manual.rst b/doc/manual.rst index 6feb8aebb1..82678f40ee 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