Explorar o código

Update error-handling.md

abakobo %!s(int64=8) %!d(string=hai) anos
pai
achega
5ebf9812aa
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

@@ -47,7 +47,7 @@ End
 Function Main:Void()
 Function Main:Void()
 	Local somethingWrong:=True
 	Local somethingWrong:=True
 	Try
 	Try
-		If somethingWrong=True Then Throw New CustomException ("Custom Exception detected")
+		If somethingWrong Then Throw New CustomException ("Custom Exception detected")
 	Catch err:CustomException
 	Catch err:CustomException
 		Print err.msg
 		Print err.msg
 	End
 	End