Skip to content

Commit 0361740

Browse files
authored
fix arrow direction
1 parent f524231 commit 0361740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lec_06_loops.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ For every $x\in \{0,1\}^*$, the _output_ of $M$ on input $x$, denoted by $M(x)$,
181181
* We then repeat the following process:
182182

183183
1. Let $(s',\sigma',D) = \delta_M(s,T[i])$.
184-
2. Set $s \rightarrow s'$, $T[i] \rightarrow \sigma'$.
184+
2. Set $s \leftarrow s'$, $T[i] \leftarrow \sigma'$.
185185
3. If $D=\mathsf{R}$ then set $i \rightarrow i+1$, if $D=\mathsf{L}$ then set $i \rightarrow \max\{i-1,0\}$. (If $D = \mathsf{S}$ then we keep $i$ the same.)
186186
4. If $D=\mathsf{H}$, then halt.
187187

0 commit comments

Comments
 (0)