diff -r 39e0be9106c1 Doc/library/profile.rst --- a/Doc/library/profile.rst Sun May 26 18:57:00 2013 -0700 +++ b/Doc/library/profile.rst Mon May 27 23:39:51 2013 +0300 @@ -247,11 +247,11 @@ import cProfile, pstats, io pr = cProfile.Profile() pr.enable() - ... do something ... + # ... do something ... pr.disable() s = io.StringIO() ps = pstats.Stats(pr, stream=s) - ps.print_results() + ps.print_stats() .. method:: enable()