# Hands-on Rust: Beta 2 - Trimming Input (page 25)

**URL:** <https://forum.devtalk.com/t/hands-on-rust-beta-2-trimming-input-page-25/4420>\
**Category:** PragProg Customers\
**Tags:** book-hands-on-rust, errata\
**Created:** [26 November 2020 17:49 UTC](https://forum.devtalk.com/t/hands-on-rust-beta-2-trimming-input-page-25/4420 "2020-11-26T17:49:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![seanjseymour](https://forum.devtalk.com/user_avatar/forum.devtalk.com/seanjseymour/32/1312_2.png) [@seanjseymour](https://forum.devtalk.com/u/seanjseymour)\
**Post date:** [26 November 2020 20:54 UTC](https://forum.devtalk.com/t/hands-on-rust-beta-2-trimming-input-page-25/4420/2 "2020-11-26T20:54:17Z")

</div>

I see how this errata happened now, the book has the main function on p. 24 as:

```auto
fn main() {
println!("Hello, what's your name?");
println!("Hello, {}", what_is_your_name())
}

```

But the [online code example](http://media.pragprog.com/titles/hwrust/code/FirstStepsWithRust/treehouse_guestlist_problem/src/main.rs) throws the function output into a variable:

```auto
fn main() {
    println!("Hello, what's your name?");
    let name = what_is_your_name();
    println!("{:?}", name);
}

```

---

_[View the full topic](https://forum.devtalk.com/t/hands-on-rust-beta-2-trimming-input-page-25/4420)._
