diff --git a/doc/codewalk/markov.xml b/doc/codewalk/markov.xml index 7f12818177..76c448ac32 100644 --- a/doc/codewalk/markov.xml +++ b/doc/codewalk/markov.xml @@ -181,7 +181,7 @@ p == Prefix{"am", "not"} one index to the left (if you consider zero as the leftmost index).
p := Prefix{"I", "am"}
-copy(p, p[:1])
+copy(p, p[1:])
// p == Prefix{"am", "am"}
We then assign the provided word to the last index
of the slice: