From 2f4c03d510129a0c461e65eb99a63d161ec1a769 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 18 Jul 2021 08:24:29 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - cachefunc.py - gprof2dot.py - nbt.py Fixes: - Should read `saturated` rather than `satured`. - Should read `heterogeneous` rather than `heterogenous`. - Should read `generated` rather than `generted`. - Should read `frequently` rather than `frequenty`. - Should read `along` rather than `allong`. --- cachefunc.py | 2 +- gprof2dot.py | 8 ++++---- nbt.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cachefunc.py b/cachefunc.py index 765ca47..7816e54 100644 --- a/cachefunc.py +++ b/cachefunc.py @@ -90,7 +90,7 @@ def clear(): def lfu_cache(maxsize=100): - '''Least-frequenty-used cache decorator. + '''Least-frequently-used cache decorator. Arguments to the cached function must be hashable. Cache performance statistics stored in f.hits and f.misses. diff --git a/gprof2dot.py b/gprof2dot.py index 4427410..8b35d06 100644 --- a/gprof2dot.py +++ b/gprof2dot.py @@ -317,7 +317,7 @@ def call_ratios(self, event): call.ratio = ratio(call[event], total) def integrate(self, outevent, inevent): - """Propagate function time ratio allong the function calls. + """Propagate function time ratio along the function calls. Must be called after finding the cycles. @@ -1678,7 +1678,7 @@ def parse(self): class XPerfParser(Parser): - """Parser for CSVs generted by XPerf, from Microsoft Windows Performance Tools. + """Parser for CSVs generated by XPerf, from Microsoft Windows Performance Tools. """ def __init__(self, stream): @@ -2229,13 +2229,13 @@ def _hue_to_rgb(self, m1, m2, h): TEMPERATURE_COLORMAP = Theme( mincolor=(2.0 / 3.0, 0.80, 0.25), # dark blue - maxcolor=(0.0, 1.0, 0.5), # satured red + maxcolor=(0.0, 1.0, 0.5), # saturated red gamma=1.0 ) PINK_COLORMAP = Theme( mincolor=(0.0, 1.0, 0.90), # pink - maxcolor=(0.0, 1.0, 0.5), # satured red + maxcolor=(0.0, 1.0, 0.5), # saturated red ) GRAY_COLORMAP = Theme( diff --git a/nbt.py b/nbt.py index 6de31dc..7d601d2 100644 --- a/nbt.py +++ b/nbt.py @@ -256,7 +256,7 @@ def write_string(string, buf): class TAG_Compound(TAG_Value, collections.MutableMapping): - """A heterogenous list of named tags. Names must be unique within + """A heterogeneous list of named tags. Names must be unique within the TAG_Compound. Add tags to the compound using the subscript operator []. This will automatically name the tags."""