diff --git a/doc/tutorial.rst b/doc/tutorial.rst
index 1bdf70c29bf8ed8bbf42b1fc5edfdeb411f64aaa..9d525605b7a41c39400cd4d4beb7e64e38d766f2 100644
--- a/doc/tutorial.rst
+++ b/doc/tutorial.rst
@@ -227,9 +227,9 @@ inspect that code, too, using :attr:`loopy.Options.write_wrapper`:
     <BLANKLINE>
         if n is None:
             if a is not None:
-                n = int(a.shape[0])
+                n = a.shape[0]
             elif out is not None:
-                n = int(out.shape[0])
+                n = out.shape[0]
     <BLANKLINE>
         # }}}
     ...