mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix doctest
This commit is contained in:
parent
dd8850770e
commit
f55a70a2a8
@ -99,8 +99,11 @@ pub enum Meta {
|
||||
/// let dummy_position = Vec3::new(0.0, 0.0, 0.0);
|
||||
/// // rng is required because some elements may be randomly generated
|
||||
/// let mut dummy_rng = rand::thread_rng();
|
||||
/// let entity =
|
||||
/// EntityInfo::at(dummy_position).with_asset_expect("common.entity.template", &mut dummy_rng);
|
||||
/// let entity = EntityInfo::at(dummy_position).with_asset_expect(
|
||||
/// "common.entity.template",
|
||||
/// &mut dummy_rng,
|
||||
/// None,
|
||||
/// );
|
||||
/// ```
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
|
Loading…
Reference in New Issue
Block a user