Skip to content

Commit 4fcc06c

Browse files
committed
Remove line numbers from ternary expressions example
1 parent f144c9c commit 4fcc06c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/New Features/Ternary Expressions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
sidebar_position: 1
33
---
44
Ternary expressions behave identical as to how they would in C. They introduce no new keywords.
5-
```pluto showLineNumbers title="Old Code"
5+
```pluto title="Old Code"
66
local max
77
if a > b then
88
max = a
99
else
1010
max = b
1111
end
1212
```
13-
```pluto showLineNumbers title="New Code"
13+
```pluto title="New Code"
1414
local max = a > b ? a : b
1515
```
1616
#### [Try It Yourself](https://pluto-lang.org/web/#code=local%20a%20%3D%206%0Alocal%20b%20%3D%209%0A%0Alocal%20max%20%3D%20a%20%3E%20b%20%3F%20a%20%3A%20b%0A%0Aprint(max))

0 commit comments

Comments
 (0)