Skip to content

Commit

Permalink
Fixed error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dewert99 committed Feb 12, 2024
1 parent 34091d0 commit 1af4039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/egraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ where
"`push` can only be called on clean egraphs"
);
if !self.inner.has_undo_log() {
panic!("Use egraph.with_push_pop() before running to call push");
panic!("Use egraph.with_push_pop_enabled() before running to call push");
}
N::pre_push(self);
let exp_push_info = self.explain.as_ref().map(Explain::push).unwrap_or_default();
Expand Down Expand Up @@ -1195,7 +1195,7 @@ where
/// Equivalent to calling [`pop`](EGraph::pop) `n` times but possibly more efficient
pub fn pop_n(&mut self, n: usize) {
if !self.inner.has_undo_log() {
panic!("Use egraph.with_push_pop() before running to call pop");
panic!("Use egraph.with_push_pop_enabled() before running to call pop");
}
if n > self.push_log.len() {
self.clear()
Expand Down

0 comments on commit 1af4039

Please sign in to comment.