diff options
Diffstat (limited to 'users/tazjin/rlox/src/errors.rs')
-rw-r--r-- | users/tazjin/rlox/src/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/users/tazjin/rlox/src/errors.rs b/users/tazjin/rlox/src/errors.rs index 306cfec4ca34..bab3f4667a74 100644 --- a/users/tazjin/rlox/src/errors.rs +++ b/users/tazjin/rlox/src/errors.rs @@ -10,6 +10,6 @@ pub struct Error { pub kind: ErrorKind, } -pub fn report(loc: &str, err: &Error) { - eprintln!("[line {}] Error {}: {:?}", err.line, loc, err.kind); +pub fn report(err: &Error) { + eprintln!("[line {}] Error: {:?}", err.line, err.kind); } |