Minor grammar fix in code-comment for fn in state (#1173)
This commit is contained in:
parent
f71dc5daeb
commit
8f426b71c9
@ -247,7 +247,7 @@ impl<T: Clone> State<T> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Same as [Self::queue], but there is already a next state, it will be overwritten instead of failing
|
/// Same as [Self::queue], but if there is already a next state, it will be overwritten instead of failing
|
||||||
pub fn overwrite_next(&mut self, state: T) -> Result<(), StateError> {
|
pub fn overwrite_next(&mut self, state: T) -> Result<(), StateError> {
|
||||||
if std::mem::discriminant(&self.current) == std::mem::discriminant(&state) {
|
if std::mem::discriminant(&self.current) == std::mem::discriminant(&state) {
|
||||||
return Err(StateError::AlreadyInState);
|
return Err(StateError::AlreadyInState);
|
||||||
|
Loading…
Reference in New Issue
Block a user