summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authoredschofield <edschofield@localhost>2006-02-17 13:01:14 +0000
committeredschofield <edschofield@localhost>2006-02-17 13:01:14 +0000
commit9c339c6b39025ce5acd33a9728fde1b0bd47c3d6 (patch)
treeed0c637b4585e0f087e62b1f42cc3b8886882f5f /numpy/core/src
parent38d444794b0e3aad56775ab20fdce9477b7ae08c (diff)
downloadnumpy-9c339c6b39025ce5acd33a9728fde1b0bd47c3d6.tar.gz
Small documentation fixes
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/arraymethods.c2
-rw-r--r--numpy/core/src/multiarraymodule.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c
index 4c077bbcd..fe87009e0 100644
--- a/numpy/core/src/arraymethods.c
+++ b/numpy/core/src/arraymethods.c
@@ -1198,7 +1198,7 @@ static char doc_sum[] = "a.sum(axis=None, dtype=None)\n\n"\
"2.0\n"\
">>> array([0.5, 1.5]).sum(dtype=int32)\n"\
"1\n"\
- ">>> array([[0, 1], [0, 5]]).sum()\n"\
+ ">>> array([[0, 1], [0, 5]]).sum(axis=0)\n"\
"array([0, 6])\n"\
">>> array([[0, 1], [0, 5]]).sum(axis=1)\n"\
"array([1, 5])";
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c
index b5bc6af6a..ac614502b 100644
--- a/numpy/core/src/multiarraymodule.c
+++ b/numpy/core/src/multiarraymodule.c
@@ -4203,7 +4203,7 @@ _prepend_ones(PyArrayObject *arr, int nd, int ndmin)
static char doc_fromobject[] = "array(object, dtype=None, copy=1, fortran=0, "\
"subok=0,ndmin=0)\n"\
"will return a new array formed from the given object type given.\n"\
- "Object can anything with an __array__ method, or any object\n"\
+ "Object can be anything with an __array__ method, or any object\n"\
"exposing the array interface, or any (nested) sequence.\n"\
"If no type is given, then the type will be determined as the\n"\
"minimum type required to hold the objects in the sequence.\n"\