From d96c34516d276f4c33d25df23d5934af1c5b2406 Mon Sep 17 00:00:00 2001 From: methylDragon Date: Tue, 16 Jun 2020 03:34:45 +0800 Subject: [PATCH] Fix docs typo --- include/pybind11/pybind11.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index ac13616d..7a6e5630 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -2152,8 +2152,8 @@ template function get_overload(const T *this_ptr, const char *name) { PYBIND11_OVERLOAD_NAME( std::string, // Return type (ret_type) Animal, // Parent class (cname) - toString, // Name of function in C++ (name) - "__str__", // Name of method in Python (fn) + "__str__", // Name of method in Python (name) + toString, // Name of function in C++ (fn) ); } \endrst */