Skip to content

Commit d515d04

Browse files
authored
Update README.md
1 parent eaa2d5f commit d515d04

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ panic(err)
242242

243243
## Caveats
244244
### Condition evaluation
245-
In contrast to many other programming languages, TypeShell evaluates all conditions before the actual statement. This is done to handle the limitations of Batch/Bash. HINT: This is also true for switch-evaluations since switchs is internally converted to ifs.
245+
In contrast to many other programming languages, TypeShell evaluates all conditions before the actual statement. This is done to handle the limitations of Batch/Bash. HINT: This is also true for switch-evaluations since switchs are internally converted to ifs.
246246

247247
```golang
248248
if a == 1 && b == 1 {
@@ -251,6 +251,7 @@ if a == 1 && b == 1 {
251251
```
252252

253253
```golang
254+
// How it's handled internally.
254255
h1 := a == 1
255256
h2 := b == 2
256257
h3 := a && b

0 commit comments

Comments
 (0)