#10698: fix typo in example.
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
index 159ab18..29fbd64 100644
--- a/Doc/library/doctest.rst
+++ b/Doc/library/doctest.rst
@@ -922,7 +922,7 @@
 
    def load_tests(loader, tests, ignore):
        tests.addTests(doctest.DocTestSuite(my_module_with_doctests))
-       return test
+       return tests
 
 There are two main functions for creating :class:`unittest.TestSuite` instances
 from text files and modules with doctests: