Cleanup example
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 7a3a2d5..57748b6 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -306,11 +306,10 @@
        'unpack', 'unpack_from']
       >>> class Shape(object):
               def __dir__(self):
-                  return ['area', 'perimter', 'location']
-
-      >>> f = Shape()
-      >>> dir(f)
-      ['area', 'perimter', 'location']
+                  return ['area', 'perimeter', 'location']
+      >>> s = Shape()
+      >>> dir(s)
+      ['area', 'perimeter', 'location']
 
    .. note::