diff --git a/all-is-cubes/src/transaction.rs b/all-is-cubes/src/transaction.rs index 423c57aa0..61348e766 100644 --- a/all-is-cubes/src/transaction.rs +++ b/all-is-cubes/src/transaction.rs @@ -83,14 +83,14 @@ pub trait Transaction: Merge { /// need to override this. Equivalent to: /// /// ```rust - /// # use all_is_cubes::transaction::{Transaction, no_outputs}; + /// # use all_is_cubes::transaction::{Transaction, ExecuteError, no_outputs}; /// # use all_is_cubes::universe::{Universe, UniverseTransaction}; /// # let transaction = UniverseTransaction::default(); /// # let target = &mut Universe::new(); /// # let outputs = &mut no_outputs; - /// let check = transaction.check(target)?; - /// transaction.commit(target, check, outputs)?; - /// # Ok::<(), Box>(()) + /// let check = transaction.check(target).map_err(ExecuteError::Check)?; + /// transaction.commit(target, check, outputs).map_err(ExecuteError::Commit)?; + /// # Ok::<(), ExecuteError>(()) /// ``` fn execute( &self,