Issue #21818: Fixed references to classes that have names matching with module
names.
diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst
index 7c16d3a..a577e18 100644
--- a/Doc/library/gzip.rst
+++ b/Doc/library/gzip.rst
@@ -67,7 +67,7 @@
    *fileobj*, since you might wish to append more material after the compressed
    data.  This also allows you to pass a :class:`~StringIO.StringIO` object opened for
    writing as *fileobj*, and retrieve the resulting memory buffer using the
-   :class:`StringIO` object's :meth:`~StringIO.StringIO.getvalue` method.
+   :class:`~StringIO.StringIO` object's :meth:`~StringIO.StringIO.getvalue` method.
 
    :class:`GzipFile` supports iteration and the :keyword:`with` statement.