Skip to content

Commit 1ce106f

Browse files
authored
Merge pull request #88 from jasalt/master
Fix example code on exceptions
2 parents 0df0af3 + bb69d5d commit 1ce106f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/documentation/control-flow.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,16 +172,16 @@ All expressions are evaluated and if no exception is thrown the value of the las
172172
(try) # evaluates to nil
173173
174174
(try
175-
(throw (php/new Exception))
176-
(catch Exception e "error")) # evaluates to "error"
175+
(throw (php/new \Exception))
176+
(catch \Exception e "error")) # evaluates to "error"
177177
178178
(try
179179
(+ 1 1)
180180
(finally (print "test"))) # Evaluates to 2 and prints "test"
181181
182182
(try
183-
(throw (php/new Exception))
184-
(catch Exception e "error")
183+
(throw (php/new \Exception))
184+
(catch \Exception e "error")
185185
(finally (print "test"))) # evaluates to "error" and prints "test"
186186
```
187187

0 commit comments

Comments
 (0)