Add error documents

This commit is contained in:
Shunsuke Shibayama 2022-12-23 15:25:14 +09:00
parent f46b33d243
commit c3c1615690
2 changed files with 13 additions and 2 deletions

View file

@ -5,7 +5,6 @@ use erg_compiler::error::CompileError;
pub(crate) fn reassign_func_error(
input: Input,
errno: usize,
loc: Location,
caused_by: String,
name: &str,
@ -19,7 +18,7 @@ pub(crate) fn reassign_func_error(
"traditional_chinese" => format!("{name}已宣告,已被引用。不建議再次賦值"),
"english" => format!("{name} has already been declared and referenced. It is not recommended to reassign such a function"),
),
errno,
1,
ErrorKind::AssignError,
loc,
),