From cd0a1ed8d4c7670eb58d33f521026e760798e1a5 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 11 Mar 2023 17:02:57 -0600 Subject: fix doc errors --- azalea-world/src/container.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'azalea-world/src/container.rs') diff --git a/azalea-world/src/container.rs b/azalea-world/src/container.rs index fdd89a75..c8af8c99 100644 --- a/azalea-world/src/container.rs +++ b/azalea-world/src/container.rs @@ -10,10 +10,10 @@ use std::{ use crate::{ChunkStorage, Instance}; -/// A container of [`World`]s. Worlds are stored as a Weak pointer here, so -/// if no clients are using a world it will be forgotten. +/// A container of [`Instance`]s (aka worlds). Instances are stored as a Weak +/// pointer here, so if no clients are using an instance it will be forgotten. #[derive(Default, Resource)] -pub struct WorldContainer { +pub struct InstanceContainer { // We just refer to the chunks here and don't include entities because there's not that many // cases where we'd want to get every entity in the world (just getting the entities in chunks // should work fine). @@ -29,9 +29,9 @@ pub struct WorldContainer { pub worlds: HashMap>>, } -impl WorldContainer { +impl InstanceContainer { pub fn new() -> Self { - WorldContainer { + InstanceContainer { worlds: HashMap::new(), } } -- cgit v1.2.3