diff --git a/doc/source/array.rst b/doc/source/array.rst index 087b583bfd338768e1942b78384e6c41aab65c94..8546747e76a60f681c0e6c9dd3ab3fa537dbdc2e 100644 --- a/doc/source/array.rst +++ b/doc/source/array.rst @@ -733,7 +733,7 @@ greater than 300:: knl(a, out) a_host = a.get() - out_host = a[a > 300] + out_host = a_host[a_host > 300] assert (out_host == out.get()[:len(out_host)]).all()