Minor grammar fix in code-comment for fn in state (#1173)

This commit is contained in:
Adam Bates 2020-12-31 19:37:02 -05:00 committed by GitHub
parent f71dc5daeb
commit 8f426b71c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,7 @@ impl<T: Clone> State<T> {
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> {
if std::mem::discriminant(&self.current) == std::mem::discriminant(&state) {
return Err(StateError::AlreadyInState);