We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac8bc7 commit 0b8844aCopy full SHA for 0b8844a
crates/bevy_macro_utils/src/bevy_manifest.rs
@@ -20,7 +20,7 @@ pub struct BevyManifest {
20
const BEVY: &str = "bevy";
21
22
impl BevyManifest {
23
- /// Returns a global shared instance of the [`BevyManifest`] struct.
+ /// Calls `f` with a global shared instance of the [`BevyManifest`] struct.
24
pub fn shared<R>(f: impl FnOnce(&BevyManifest) -> R) -> R {
25
static MANIFESTS: RwLock<BTreeMap<PathBuf, BevyManifest>> = RwLock::new(BTreeMap::new());
26
let manifest_path = Self::get_manifest_path();
0 commit comments