diff --git a/examples/python/sparse.py b/examples/python/sparse.py
index 5fba194eff1195f73f494a9f32112f2934d8fe3a..03f1ad22e69ec7024ae06b9e37b83106d0d05a86 100644
--- a/examples/python/sparse.py
+++ b/examples/python/sparse.py
@@ -1,8 +1,8 @@
 import loopy as lp
 
 k = lp.make_kernel([
-    "[m] -> { [i] : 0 <= i < m }",
-    "[length] -> { [j] : 0 <= j < length }"],
+    "{ [i] : 0 <= i < m }",
+    "{ [j] : 0 <= j < length }"],
     """
     rowstart = rowstarts[i]
     rowend = rowstarts[1 + i]