sample-code/ascii: fix reference depth for postfix-call in_range function

This commit is contained in:
John 2025-09-15 00:22:38 -04:00
parent 1f9d32f972
commit 02239c5ce4

View File

@ -14,7 +14,7 @@ fn n_digit(n: u32) -> char {
}) as char
}
fn in_range(num: u32, start: u32, end: u32) -> bool {
fn in_range(&num: &u32, start: u32, end: u32) -> bool {
(start <= num) && (num <= end )
}