From 6c29cbf88de0df177ec730fc4c85e52bdf8d82c0 Mon Sep 17 00:00:00 2001 From: Riccardo Bertossa <33728857+rikigigi@users.noreply.github.com> Date: Fri, 18 Oct 2019 17:55:17 +0200 Subject: [PATCH] misleading comment corrected (strides in buffer_info is bytes and not number of entries) (#1958) --- include/pybind11/buffer_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/buffer_info.h b/include/pybind11/buffer_info.h index 9f072fa73..b106d2cc6 100644 --- a/include/pybind11/buffer_info.h +++ b/include/pybind11/buffer_info.h @@ -21,7 +21,7 @@ struct buffer_info { std::string format; // For homogeneous buffers, this should be set to format_descriptor::format() ssize_t ndim = 0; // Number of dimensions std::vector shape; // Shape of the tensor (1 entry per dimension) - std::vector strides; // Number of entries between adjacent entries (for each per dimension) + std::vector strides; // Number of bytes between adjacent entries (for each per dimension) buffer_info() { }