Small comment fixes

This commit is contained in:
Imbris 2022-01-18 00:27:27 -05:00
parent cc40058ae2
commit 374bd10e5d
2 changed files with 1 additions and 2 deletions

View File

@ -14,7 +14,6 @@
//! when using the x macro defined here which requires this.
/// This provides a lowercase name and the component type.
//#[rustfmt::skip]
#[macro_export]
macro_rules! synced_components {
($macro:ident) => {

View File

@ -78,7 +78,7 @@ impl Energy {
/// results.
pub fn update_maximum(&mut self, maximum: u32) {
self.maximum = maximum;
// Clamp the current health to enforce the current <= maximum invariant.
// Clamp the current energy to enforce the current <= maximum invariant.
self.current = self.current.min(self.maximum);
}