Fix error messages.
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c
index dd6fe82..abd069b 100644
--- a/Objects/memoryobject.c
+++ b/Objects/memoryobject.c
@@ -307,7 +307,8 @@
if (!equiv_format(dest, src) ||
!equiv_shape(dest, src)) {
PyErr_SetString(PyExc_ValueError,
- "ndarray assignment: lvalue and rvalue have different structures");
+ "memoryview assignment: lvalue and rvalue have different "
+ "structures");
return 0;
}
@@ -1433,7 +1434,7 @@
/* PyBUF_SIMPLE|PyBUF_FORMAT and PyBUF_WRITABLE|PyBUF_FORMAT do
not make sense. */
PyErr_Format(PyExc_BufferError,
- "ndarray: cannot cast to unsigned bytes if the format flag "
+ "memoryview: cannot cast to unsigned bytes if the format flag "
"is present");
return -1;
}