Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grammar fixes #24

Merged
merged 1 commit into from
Nov 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Grammar fixes
  • Loading branch information
Ralith committed Nov 7, 2019
commit 689263138fd8152c75bf053cb4a80ae7c13b1781
4 changes: 2 additions & 2 deletions src/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ impl World {
target_chunk
}

/// Adds a component to an entity, or set's its value if the component is
/// Adds a component to an entity, or sets its value if the component is
/// already present.
pub fn add_component<T: Component>(&mut self, entity: Entity, component: T) {
if let Some(mut comp) = self.get_component_mut(entity) {
Expand Down Expand Up @@ -480,7 +480,7 @@ impl World {
}
}

/// Adds a tag to an entity, or set's its value if the tag is
/// Adds a tag to an entity, or sets its value if the tag is
/// already present.
pub fn add_tag<T: Tag>(&mut self, entity: Entity, tag: T) {
if self.get_tag::<T>(entity).is_some() {
Expand Down