Explorar o código

Fixed trycatch example code

Alan Rawkins %!s(int64=8) %!d(string=hai) anos
pai
achega
36abd28dbe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/monkey/docs/language/error-handling.md

+ 1 - 1
modules/monkey/docs/language/error-handling.md

@@ -44,7 +44,7 @@ Class CustomException Extends Throwable
   	End
 End
 
-Function Main()
+Function Main:Void()
 	Local somethingWrong:=True
 	Try
 		If somethingWrong=True Then Throw New CustomException ("Custom Exception detected")