Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Oct 28, 2022
1 parent 8284751 commit fbe2738
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions boa_engine/src/vm/opcode/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,22 +139,22 @@ pub enum Opcode {

/// Rotates the top `n` values of the stack to the left by `1`.
///
/// Equivalent to calling [`Slice::rotate_left`] with argument `1` on the top `n` values of the
/// Equivalent to calling [`slice::rotate_left`] with argument `1` on the top `n` values of the
/// stack.
///
/// Operands: n: `u8`
///
/// Stack: v[n], v[n-1], ... , v[1], v[0] **=>** v[n-1], ... , v[1], v[0], v[n]
/// Stack: v\[n\], v\[n-1\], ... , v\[1\], v\[0\] **=>** v\[n-1\], ... , v\[1\], v\[0\], v\[n\]
RotateLeft,

/// Rotates the top `n` values of the stack to the right by `1`.
///
/// Equivalent to calling [`Slice::rotate_right`] with argument `1` on the top `n` values of the
/// Equivalent to calling [`slice::rotate_right`] with argument `1` on the top `n` values of the
/// stack.
///
/// Operands: n: `u8`
///
/// Stack: v[n], v[n-1], ... , v[1], v[0] **=>** v[0], v[n], v[n-1], ... , v[1]
/// Stack: v\[n\], v\[n-1\], ... , v\[1\], v\[0\] **=>** v\[0\], v\[n\], v\[n-1\], ... , v\[1\]
RotateRight,

/// Push integer `0` on the stack.
Expand Down

0 comments on commit fbe2738

Please sign in to comment.