mention the version gettempdir() was added
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
index 6e44965..9db66a3 100644
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -224,6 +224,8 @@
    :data:`tempdir` is not ``None``, this simply returns its contents; otherwise,
    the search described above is performed, and the result returned.
 
+   .. versionadded:: 2.3
+
 
 .. data:: template