summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Gorbunov <gorbunov.dmitry.1999@gmail.com>2021-07-25 03:28:51 +1000
committerGitHub <noreply@github.com>2021-07-24 19:28:51 +0200
commit12994a739dbeae7a4e7273cb742ca9270e168763 (patch)
tree07d77d3b1526aa2ad885486bb7a0abcbcb5bb911
parentac898c7c8cd4d232c602b70d58fc53474e8b9154 (diff)
downloadpsutil-12994a739dbeae7a4e7273cb742ca9270e168763.tar.gz
Fix typos in documentation (#1970)
-rw-r--r--CREDITS6
-rw-r--r--docs/index.rst4
-rw-r--r--psutil/__init__.py2
3 files changed, 9 insertions, 3 deletions
diff --git a/CREDITS b/CREDITS
index bd375018..a46ea44a 100644
--- a/CREDITS
+++ b/CREDITS
@@ -748,3 +748,9 @@ I: 1921
N: MaWe2019
W: https://github.com/MaWe2019
I: 1953
+
+N: Dmitry Gorbunov
+C: Russia
+E: gorbunov.dmitry.1999@gmail.com
+W: https://gorbunov-dmitry.github.io
+D: fix typos in documentation
diff --git a/docs/index.rst b/docs/index.rst
index f01cceed..34e136f6 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -261,7 +261,7 @@ CPU
.. function:: cpu_freq(percpu=False)
- Return CPU frequency as a nameduple including *current*, *min* and *max*
+ Return CPU frequency as a named tuple including *current*, *min* and *max*
frequencies expressed in Mhz.
On Linux *current* frequency reports the real-time value, on all other
platforms it represents the nominal "fixed" value.
@@ -417,7 +417,7 @@ Disks
Note that this may not be fully reliable on all systems (e.g. on BSD this
parameter is ignored).
See `disk_usage.py`_ script providing an example usage.
- Returns a list of namedtuples with the following fields:
+ Returns a list of named tuples with the following fields:
* **device**: the device path (e.g. ``"/dev/hda1"``). On Windows this is the
drive letter (e.g. ``"C:\\"``).
diff --git a/psutil/__init__.py b/psutil/__init__.py
index 0b5dff55..92b6398a 100644
--- a/psutil/__init__.py
+++ b/psutil/__init__.py
@@ -1851,7 +1851,7 @@ def cpu_stats():
if hasattr(_psplatform, "cpu_freq"):
def cpu_freq(percpu=False):
- """Return CPU frequency as a nameduple including current,
+ """Return CPU frequency as a namedtuple including current,
min and max frequency expressed in Mhz.
If *percpu* is True and the system supports per-cpu frequency