Issue #24148: Fix incorrect Stats.sort_stats() example.
"cum" is not a valid argument.
Patch by Brandon Milam.
diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst
index 6a6c489..2928821 100644
--- a/Doc/library/profile.rst
+++ b/Doc/library/profile.rst
@@ -172,7 +172,7 @@
for only the class init methods (since they are spelled with ``__init__`` in
them). As one final example, you could try::
- p.sort_stats('time', 'cum').print_stats(.5, 'init')
+ p.sort_stats('time', 'cumulative').print_stats(.5, 'init')
This line sorts statistics with a primary key of time, and a secondary key of
cumulative time, and then prints out some of the statistics. To be specific, the