From e1c19f6c9374338f3d51fdf6b50693ce4a11cabd Mon Sep 17 00:00:00 2001 From: juliancoffee Date: Sun, 6 Jun 2021 20:38:17 +0300 Subject: [PATCH] docs --- common/src/comp/inventory/loadout_builder.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/comp/inventory/loadout_builder.rs b/common/src/comp/inventory/loadout_builder.rs index fff159b3fe..6382dd393f 100644 --- a/common/src/comp/inventory/loadout_builder.rs +++ b/common/src/comp/inventory/loadout_builder.rs @@ -79,7 +79,11 @@ impl ItemSpec { } #[cfg(test)] - // Read everything and checks if it's loading + /// # Usage + /// Read everything and checks if it's loading + /// + /// # Panics + /// 1) If weights are invalid pub fn validate(&self, key: EquipSlot) { match self { ItemSpec::Item(specifier) => std::mem::drop(Item::new_from_asset_expect(&specifier)),