Nicolas Cannasse 18 년 전
부모
커밋
ceda5bf481
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -1477,7 +1477,7 @@ and type_switch ctx e cases def need_val p =
 			List.map (fun c ->
 				match c with
 				| CExpr (({ eexpr = TConst c }) as e) ->
-					if Hashtbl.mem consts c then error "Duplicate constant in swtich" e.epos;
+					if Hashtbl.mem consts c then error "Duplicate constant in switch" e.epos;
 					Hashtbl.add consts c true;
 					e
 				| CExpr c -> c