diff -r 687295c6c8f2 Doc/library/profile.rst --- a/Doc/library/profile.rst Mon May 27 10:58:55 2013 -0700 +++ b/Doc/library/profile.rst Mon May 27 23:41:26 2013 +0300 @@ -270,11 +270,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()