summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/ma/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 38076e8b3..223f119b8 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -5937,7 +5937,7 @@ def min(obj, axis=None, out=None, fill_value=None):
try:
return obj.min(axis=axis, fill_value=fill_value, out=out)
except (AttributeError, TypeError):
- # If obj doesn't have a max method,
+ # If obj doesn't have a min method,
# ...or if the method doesn't accept a fill_value argument
return asanyarray(obj).min(axis=axis, fill_value=fill_value, out=out)
min.__doc__ = MaskedArray.min.__doc__
@@ -5956,7 +5956,7 @@ def ptp(obj, axis=None, out=None, fill_value=None):
try:
return obj.ptp(axis, out=out, fill_value=fill_value)
except (AttributeError, TypeError):
- # If obj doesn't have a max method,
+ # If obj doesn't have a ptp method,
# ...or if the method doesn't accept a fill_value argument
return asanyarray(obj).ptp(axis=axis, fill_value=fill_value, out=out)
ptp.__doc__ = MaskedArray.ptp.__doc__