fix comment of exit_runtime (#2616)

Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
zhiqiangxu
2023-12-12 00:47:24 +08:00
committed by GitHub
parent 7b416d84ff
commit 50b7b6f399
2 changed files with 2 additions and 2 deletions
@@ -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 {
@@ -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()?;