argument naming

This commit is contained in:
mos 2025-03-09 19:46:04 +01:00
parent ecf156b513
commit 56cb3d2b47
1 changed files with 2 additions and 2 deletions

View File

@ -167,9 +167,9 @@ impl Level {
Ok(Self { size, player, map }) Ok(Self { size, player, map })
} }
fn read_rle(map: &str) -> std::result::Result<Self, ReadError> { fn read_rle(lvl: &str) -> std::result::Result<Self, ReadError> {
Self::read( Self::read(
map.chars() lvl.chars()
.scan(1, |n, c| { .scan(1, |n, c| {
Some(match c { Some(match c {
'0'..='9' => { '0'..='9' => {