Skip to content

Commit 4e9e43a

Browse files
some issues in readme-file, replacing orange with apple (#2656)
**### There is issue in conditionals.md readme file** **In example of fruits conditionals** **there are fruits.IsGreen() if it is False then continue. if it is True then print "Apple" but in readme file there is "Orange"** I replaced "Orange" with "Apple" because in example there is "Apple" ```carbon if (fruit.IsYellow()) { Print("Banana!"); } else if (fruit.IsOrange()) { Print("Orange!"); } else if (fruit.IsGreen()) { Print("Apple!"); } else { Print("Vegetable!"); } fruit.Eat(); ```
1 parent c8141b5 commit 4e9e43a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/design/control_flow/conditionals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ This code will:
6565
- When `False`, evaluate `fruit.IsOrange()`:
6666
- When `True`, print `Orange!` and resume execution at `fruit.Eat()`.
6767
- When `False`, evaluate `fruit.IsGreen()`:
68-
- When `True`, print `Orange!` and resume execution at
68+
- When `True`, print `Apple!` and resume execution at
6969
`fruit.Eat()`.
7070
- When `False`, print `Vegetable!` and resume execution at
7171
`fruit.Eat()`.

0 commit comments

Comments
 (0)