Fixing typo in index.rst

Documentation was using incorrect variable name in example.