argument naming
This commit is contained in:
parent
ecf156b513
commit
56cb3d2b47
|
@ -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' => {
|
||||||
|
|
Loading…
Reference in New Issue