Skip to content

Commit ece5cb1

Browse files
committed
Fixed typo: s/occurences/occurrences/g
1 parent 88f0aae commit ece5cb1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ this would result in::
6464

6565
Output will follow::
6666

67-
Line # Mem usage Increment Occurences Line Contents
67+
Line # Mem usage Increment Occurrences Line Contents
6868
============================================================
6969
3 38.816 MiB 38.816 MiB 1 @profile
7070
4 def my_func():

memory_profiler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ def show_results(prof, stream=None, precision=1):
854854
template = '{0:>6} {1:>12} {2:>12} {3:>10} {4:<}'
855855

856856
for (filename, lines) in prof.code_map.items():
857-
header = template.format('Line #', 'Mem usage', 'Increment', 'Occurences',
857+
header = template.format('Line #', 'Mem usage', 'Increment', 'Occurrences',
858858
'Line Contents')
859859

860860
stream.write(u'Filename: ' + filename + '\n\n')
@@ -870,13 +870,13 @@ def show_results(prof, stream=None, precision=1):
870870
inc = mem[0]
871871
total_mem = mem[1]
872872
total_mem = template_mem.format(total_mem)
873-
occurences = mem[2]
873+
occurrences = mem[2]
874874
inc = template_mem.format(inc)
875875
else:
876876
total_mem = u''
877877
inc = u''
878-
occurences = u''
879-
tmp = template.format(lineno, total_mem, inc, occurences, all_lines[lineno - 1])
878+
occurrences = u''
879+
tmp = template.format(lineno, total_mem, inc, occurrences, all_lines[lineno - 1])
880880
stream.write(tmp)
881881
stream.write(u'\n\n')
882882

0 commit comments

Comments
 (0)