[Issue 15476] Make "code object" its own entry in the index
diff --git a/Doc/library/marshal.rst b/Doc/library/marshal.rst
index 0698834..1ce7326 100644
--- a/Doc/library/marshal.rst
+++ b/Doc/library/marshal.rst
@@ -17,7 +17,6 @@
 .. index::
    module: pickle
    module: shelve
-   object: code
 
 This is not a general "persistence" module.  For general persistence and
 transfer of Python objects through RPC calls, see the modules :mod:`pickle` and
@@ -35,6 +34,8 @@
    maliciously constructed data.  Never unmarshal data received from an
    untrusted or unauthenticated source.
 
+.. index:: object; code, code object
+
 Not all Python object types are supported; in general, only objects whose value
 is independent from a particular invocation of Python can be written and read by
 this module.  The following types are supported: booleans, integers, long
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 2daaf27..5d8ebbc 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2953,13 +2953,13 @@
 See :ref:`types` for more information.
 
 
+.. index:: object; code, code object
+
 .. _bltin-code-objects:
 
 Code Objects
 ------------
 
-.. index:: object: code
-
 .. index::
    builtin: compile
    single: func_code (function object attribute)