Skip to content

Commit

Permalink
fix comment of exit_runtime (paritytech#2616)
Browse files Browse the repository at this point in the history
Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
zhiqiangxu and bkchr authored Dec 11, 2023
1 parent 0b9bad7 commit 4310c03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ impl<K: Ord + Hash + Clone, V> OverlayedMap<K, V> {

/// Call this when control returns from the runtime.
///
/// This commits all dangling transaction left open by the runtime.
/// This rollbacks all dangling transaction left open by the runtime.
/// Calling this while already outside the runtime will return an error.
pub fn exit_runtime(&mut self) -> Result<(), NotInRuntime> {
if let ExecutionMode::Client = self.execution_mode {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ impl<H: Hasher> OverlayedChanges<H> {

/// Call this when control returns from the runtime.
///
/// This commits all dangling transaction left open by the runtime.
/// This rollbacks all dangling transaction left open by the runtime.
/// Calling this while outside the runtime will return an error.
pub fn exit_runtime(&mut self) -> Result<(), NotInRuntime> {
self.top.exit_runtime()?;
Expand Down

0 comments on commit 4310c03

Please sign in to comment.