Skip to content

Commit 334dcbd

Browse files
committed
Updated example using @epidemian's suggestion
1 parent 7065538 commit 334dcbd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
score = 76
22
grade = switch
3-
when 90 <= score then 'A'
4-
when 80 <= score < 90 then 'B'
5-
when 70 <= score < 80 then 'C'
6-
when 60 <= score < 70 then 'D'
7-
when score < 60 then 'F'
3+
when score < 60 then 'F'
4+
when score < 70 then 'D'
5+
when score < 80 then 'C'
6+
when score < 90 then 'B'
7+
else 'A'
88
# grade == 'C'

0 commit comments

Comments
 (0)