fix doctest

This commit is contained in:
Christof Petig 2023-12-16 14:40:26 +01:00
parent dd8850770e
commit f55a70a2a8

View File

@ -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)]