From 6d744574cd4981258cc3ea7c101f3e6a9b162847 Mon Sep 17 00:00:00 2001 From: "Michael A. Perlin" Date: Tue, 25 Jan 2022 10:46:02 -0600 Subject: [PATCH] Documentation fix for `cirq.Circuit.prev_moment_operating_on` (#4895) See #4894 concerning a single-word documentation error for `cirq.Circuit.prev_moment_operating_on` --- cirq-core/cirq/circuits/circuit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cirq-core/cirq/circuits/circuit.py b/cirq-core/cirq/circuits/circuit.py index bb298b823f8..ba37f9d24c4 100644 --- a/cirq-core/cirq/circuits/circuit.py +++ b/cirq-core/cirq/circuits/circuit.py @@ -349,7 +349,7 @@ def prev_moment_operating_on( end_moment_index: Optional[int] = None, max_distance: Optional[int] = None, ) -> Optional[int]: - """Finds the index of the next moment that touches the given qubits. + """Finds the index of the previous moment that touches the given qubits. Args: qubits: We're looking for operations affecting any of these qubits.