From b596235fe0ddf7f935e3d21589dc57c15f9b0a0d Mon Sep 17 00:00:00 2001 From: xkszltl Date: Tue, 21 Feb 2023 06:58:37 +0800 Subject: [PATCH] Inconsistent comments between 2 templates of `unchecked()`. (#4519) This comment is unrelated to having T in tparam or not. Probably a typo. Copied the correct one here. Resolve https://github.com/pybind/pybind11/issues/4518 --- include/pybind11/numpy.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 8f072af26..854d6e87f 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -1121,10 +1121,10 @@ public: /** * Returns a proxy object that provides const access to the array's data without bounds or - * dimensionality checking. Unlike `unchecked()`, this does not require that the underlying - * array have the `writable` flag. Use with care: the array must not be destroyed or reshaped - * for the duration of the returned object, and the caller must take care not to access invalid - * dimensions or dimension indices. + * dimensionality checking. Unlike `mutable_unchecked()`, this does not require that the + * underlying array have the `writable` flag. Use with care: the array must not be destroyed + * or reshaped for the duration of the returned object, and the caller must take care not to + * access invalid dimensions or dimension indices. */ template detail::unchecked_reference unchecked() const & {