From 7a6f5f178a98716d884cc06afdea39d30d6f7363 Mon Sep 17 00:00:00 2001 From: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com> Date: Wed, 11 Dec 2024 11:29:04 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Kevin Hartman --- crates/circuit/src/packed_instruction.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/circuit/src/packed_instruction.rs b/crates/circuit/src/packed_instruction.rs index 96d6d6fb250b..1181139a206d 100644 --- a/crates/circuit/src/packed_instruction.rs +++ b/crates/circuit/src/packed_instruction.rs @@ -567,7 +567,7 @@ impl PackedInstruction { // Setters - /// Retrieves an immutable reference to the instruction's underlying operation. + /// Retrieves a mutable reference to the instruction's underlying operation. pub fn op_mut(&mut self) -> &mut PackedOperation { #[cfg(feature = "cache_pygates")] { @@ -576,7 +576,7 @@ impl PackedInstruction { &mut self.op } - /// Retrieves an immutable reference to the index under which the interner has stored `qubits`. + /// Retrieves a mutable reference to the index under which the interner has stored `qubits`. pub fn qubits_mut(&mut self) -> &mut Interned<[Qubit]> { &mut self.qubits } @@ -595,7 +595,7 @@ impl PackedInstruction { &mut self.extra_attrs } - /// Retrieves the cached py_gate immutably. + /// Retrieves the cached py_gate mutably. #[cfg(feature = "cache_pygates")] pub fn py_op_mut(&mut self) -> &mut OnceLock { &mut self.py_op