From 896538db3ab582dfaf72051cbc48c22d049b5352 Mon Sep 17 00:00:00 2001
From: Alexandre Mclean <alexandre.mclean@gmail.com>
Date: Sat, 19 Jul 2014 01:16:03 -0400
Subject: [PATCH] Fix missing index key in prefix extractor example

---
 docs/tutorial/index.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/tutorial/index.rst b/docs/tutorial/index.rst
index 0457bf8..0617d01 100644
--- a/docs/tutorial/index.rst
+++ b/docs/tutorial/index.rst
@@ -242,7 +242,7 @@ So always the first 5 bytes are used as the prefix ::
     it.seek(prefix)
 
     # prints {b'00002.z': b'z', b'00002.y': b'y', b'00002.x': b'x'}
-    print dict(itertools.takewhile(lambda item: item[].startswith(prefix), it))
+    print dict(itertools.takewhile(lambda item: item[0].startswith(prefix), it))
 
 
 Backup And Restore
-- 
GitLab