[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:
parent
1e7f6c8c7c
commit
b82fe07384
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue