Fix doc_markdown lints in bevy_transform (#3483)
				
					
				
			#3457 adds the `doc_markdown` clippy lint, which checks doc comments to make sure code identifiers are escaped with backticks. This causes a lot of lint errors, so this is one of a number of PR's that will fix those lint errors one crate at a time. This PR fixes lints in the `bevy_transform` crate.
This commit is contained in:
		
							parent
							
								
									accfb33ab9
								
							
						
					
					
						commit
						593f64cfcb
					
				| @ -139,13 +139,13 @@ impl GlobalTransform { | |||||||
|         self.rotation * Vec3::X |         self.rotation * Vec3::X | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to -local_x()
 |     /// Equivalent to [`-local_x()`][GlobalTransform::local_x]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn left(&self) -> Vec3 { |     pub fn left(&self) -> Vec3 { | ||||||
|         -self.local_x() |         -self.local_x() | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to local_x()
 |     /// Equivalent to [`local_x()`][GlobalTransform::local_x]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn right(&self) -> Vec3 { |     pub fn right(&self) -> Vec3 { | ||||||
|         self.local_x() |         self.local_x() | ||||||
| @ -157,13 +157,13 @@ impl GlobalTransform { | |||||||
|         self.rotation * Vec3::Y |         self.rotation * Vec3::Y | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to local_y()
 |     /// Equivalent to [`local_y()`][GlobalTransform::local_y]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn up(&self) -> Vec3 { |     pub fn up(&self) -> Vec3 { | ||||||
|         self.local_y() |         self.local_y() | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to -local_y()
 |     /// Equivalent to [`-local_y()`][GlobalTransform::local_y]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn down(&self) -> Vec3 { |     pub fn down(&self) -> Vec3 { | ||||||
|         -self.local_y() |         -self.local_y() | ||||||
| @ -175,13 +175,13 @@ impl GlobalTransform { | |||||||
|         self.rotation * Vec3::Z |         self.rotation * Vec3::Z | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to -local_z()
 |     /// Equivalent to [`-local_z()`][[GlobalTransform::local_z]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn forward(&self) -> Vec3 { |     pub fn forward(&self) -> Vec3 { | ||||||
|         -self.local_z() |         -self.local_z() | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to local_z()
 |     /// Equivalent to [`local_z()`][GlobalTransform::local_z]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn back(&self) -> Vec3 { |     pub fn back(&self) -> Vec3 { | ||||||
|         self.local_z() |         self.local_z() | ||||||
|  | |||||||
| @ -151,13 +151,13 @@ impl Transform { | |||||||
|         self.rotation * Vec3::X |         self.rotation * Vec3::X | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to -local_x()
 |     /// Equivalent to [`-local_x()`][Transform::local_x()]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn left(&self) -> Vec3 { |     pub fn left(&self) -> Vec3 { | ||||||
|         -self.local_x() |         -self.local_x() | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to local_x()
 |     /// Equivalent to [`local_x()`][Transform::local_x()]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn right(&self) -> Vec3 { |     pub fn right(&self) -> Vec3 { | ||||||
|         self.local_x() |         self.local_x() | ||||||
| @ -169,13 +169,13 @@ impl Transform { | |||||||
|         self.rotation * Vec3::Y |         self.rotation * Vec3::Y | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to local_y()
 |     /// Equivalent to [`local_y()`][Transform::local_y]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn up(&self) -> Vec3 { |     pub fn up(&self) -> Vec3 { | ||||||
|         self.local_y() |         self.local_y() | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to -local_y()
 |     /// Equivalent to [`-local_y()`][Transform::local_y]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn down(&self) -> Vec3 { |     pub fn down(&self) -> Vec3 { | ||||||
|         -self.local_y() |         -self.local_y() | ||||||
| @ -187,13 +187,13 @@ impl Transform { | |||||||
|         self.rotation * Vec3::Z |         self.rotation * Vec3::Z | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to -local_z()
 |     /// Equivalent to [`-local_z()`][Transform::local_z]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn forward(&self) -> Vec3 { |     pub fn forward(&self) -> Vec3 { | ||||||
|         -self.local_z() |         -self.local_z() | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /// Equivalent to local_z()
 |     /// Equivalent to [`local_z()`][Transform::local_z]
 | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn back(&self) -> Vec3 { |     pub fn back(&self) -> Vec3 { | ||||||
|         self.local_z() |         self.local_z() | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Michael Dorst
						Michael Dorst