Sfoglia il codice sorgente

Fixed trycatch example code

Alan Rawkins 8 anni fa
parent
commit
36abd28dbe
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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")