[Rust] Fix small mistyping (#6585)

Hi!

Just a veeeeeery small fix in the Rust sample. No functionality is affected.

That's not important at all but annoying for my eyes :)
This commit is contained in:
Alexander Zaitsev 2021-04-22 22:36:23 +03:00 committed by GitHub
parent 1e7f6c8c7c
commit b82fe07384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ fn main() {
// Create the monster using the `Monster::create` helper function. This // Create the monster using the `Monster::create` helper function. This
// function accepts a `MonsterArgs` struct, which supplies all of the data // function accepts a `MonsterArgs` struct, which supplies all of the data
// needed to build a `Monster`. To supply empty/default fields, just use the // needed to build a `Monster`. To supply empty/default fields, just use the
// Rust built-in `Default::default()` function, as demononstrated below. // Rust built-in `Default::default()` function, as demonstrated below.
let orc = Monster::create(&mut builder, &MonsterArgs{ let orc = Monster::create(&mut builder, &MonsterArgs{
pos: Some(&Vec3::new(1.0f32, 2.0f32, 3.0f32)), pos: Some(&Vec3::new(1.0f32, 2.0f32, 3.0f32)),
mana: 150, mana: 150,