Update docstrings for some Commands to use the correct type (#12111)
# Objective - A tiny nit I noticed; I think the type of these function is `EntityCommand`, not `Command` Co-authored-by: Charles Bournhonesque <cbournhonesque@snapchat.com>
This commit is contained in:
		
							parent
							
								
									ff29c43916
								
							
						
					
					
						commit
						5bcc100d10
					
				@ -1086,7 +1086,7 @@ fn try_insert(bundle: impl Bundle) -> impl EntityCommand {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/// A [`Command`] that removes components from an entity.
 | 
			
		||||
/// An [`EntityCommand`] that removes components from an entity.
 | 
			
		||||
/// For a [`Bundle`] type `T`, this will remove any components in the bundle.
 | 
			
		||||
/// Any components in the bundle that aren't found on the entity will be ignored.
 | 
			
		||||
fn remove<T: Bundle>(entity: Entity, world: &mut World) {
 | 
			
		||||
@ -1095,7 +1095,7 @@ fn remove<T: Bundle>(entity: Entity, world: &mut World) {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/// A [`Command`] that removes components from an entity.
 | 
			
		||||
/// An [`EntityCommand`] that removes components from an entity.
 | 
			
		||||
/// For a [`Bundle`] type `T`, this will remove all components except those in the bundle.
 | 
			
		||||
/// Any components in the bundle that aren't found on the entity will be ignored.
 | 
			
		||||
fn retain<T: Bundle>(entity: Entity, world: &mut World) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user