Skip to content

Commit 767e5d3

Browse files
Improve docs, make functions internal
1 parent 3cbae88 commit 767e5d3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

vm/src/vm/runners/cairo_runner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,15 +407,15 @@ impl CairoRunnerBuilder {
407407
Ok(())
408408
}
409409

410-
/// Predecodes the program's instructions.
410+
/// Loads decoded program instructions.
411411
///
412412
/// # Safety
413413
///
414414
/// The decoded instructions must belong the the associated program. To
415415
/// obtain them, call [VirtualMachine::take_instruction_cache] at the end of
416416
/// the execution.
417417
///
418-
/// [VirtualMachine::take_instruction_cache]: crate::vm::vm_core::VirtualMachine::take_instruction_cache
418+
/// [VirtualMachine::take_instruction_cache]: VirtualMachine::take_instruction_cache
419419
pub fn load_cached_instructions(
420420
&mut self,
421421
instructions: Vec<Option<Instruction>>,

vm/src/vm/vm_core.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ impl VirtualMachine {
541541
///
542542
/// [CairoRunner::run_until_pc_v2]: crate::vm::runners::cairo_runner::CairoRunner::run_until_pc_v2
543543
#[cfg(not(feature = "extensive_hints"))]
544-
pub fn step_hint_v2(
544+
pub(crate) fn step_hint_v2(
545545
&mut self,
546546
hint_processor: &mut dyn HintProcessor,
547547
exec_scopes: &mut ExecutionScopes,
@@ -594,7 +594,7 @@ impl VirtualMachine {
594594
///
595595
/// [CairoRunner::run_until_pc_v2]: crate::vm::runners::cairo_runner::CairoRunner::run_until_pc_v2
596596
#[cfg(feature = "extensive_hints")]
597-
pub fn step_hint_v2(
597+
pub(crate) fn step_hint_v2(
598598
&mut self,
599599
hint_processor: &mut dyn HintProcessor,
600600
exec_scopes: &mut ExecutionScopes,
@@ -699,7 +699,7 @@ impl VirtualMachine {
699699
/// `test_utils` features, as doing so would imply breaking the hook API.
700700
///
701701
/// [CairoRunner::run_until_pc_v2]: crate::vm::runners::cairo_runner::CairoRunner::run_until_pc_v2
702-
pub fn step_v2(
702+
pub(crate) fn step_v2(
703703
&mut self,
704704
hint_processor: &mut dyn HintProcessor,
705705
exec_scopes: &mut ExecutionScopes,

0 commit comments

Comments
 (0)