Pārlūkot izejas kodu

Update error-handling.md

abakobo 8 gadi atpakaļ
vecāks
revīzija
5ebf9812aa
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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()
 	Local somethingWrong:=True
 	Try
-		If somethingWrong=True Then Throw New CustomException ("Custom Exception detected")
+		If somethingWrong Then Throw New CustomException ("Custom Exception detected")
 	Catch err:CustomException
 		Print err.msg
 	End