# Advanced Hands-on Rust (B2.0): Argument mismatch (pp118 - 121)

**URL:** <https://forum.devtalk.com/t/advanced-hands-on-rust-b2-0-argument-mismatch-pp118-121/167738>\
**Category:** PragProg Customers\
**Tags:** book-advanced-hands-on-rust, errata\
**Created:** [27 August 2024 11:31 UTC](https://forum.devtalk.com/t/advanced-hands-on-rust-b2-0-argument-mismatch-pp118-121/167738 "2024-08-27T11:31:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrightdylan](https://forum.devtalk.com/user_avatar/forum.devtalk.com/wrightdylan/32/6423_2.png) [@wrightdylan](https://forum.devtalk.com/u/wrightdylan)\
**Post date:** [27 August 2024 11:31 UTC](https://forum.devtalk.com/t/advanced-hands-on-rust-b2-0-argument-mismatch-pp118-121/167738/1 "2024-08-27T11:31:16Z")

</div>

@herbert

on p118 a method was defined as:

```auto
pub fn get_handle<T>(&self, index: &str, assets: &LoadedAssets) -> Option<Handle<T>>

```

however on p121 in the main.rs file for flappy, in the setup function, this method is only passed one parameter. The same problem exists for the build\_wall function on the same page. This also affects the function move\_wall as it calls build\_wall. I’m not sure if this is the original syntax left over from Beta 1.0.

The spawn\_image macro does take the second parameter into account, so perhaps that’s not a major issue.
