Skip to content

Commit d96c345

Browse files
methylDragonwjakob
authored andcommitted
Fix docs typo
1 parent e107fc2 commit d96c345

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/pybind11.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -2152,8 +2152,8 @@ template <class T> function get_overload(const T *this_ptr, const char *name) {
21522152
PYBIND11_OVERLOAD_NAME(
21532153
std::string, // Return type (ret_type)
21542154
Animal, // Parent class (cname)
2155-
toString, // Name of function in C++ (name)
2156-
"__str__", // Name of method in Python (fn)
2155+
"__str__", // Name of method in Python (name)
2156+
toString, // Name of function in C++ (fn)
21572157
);
21582158
}
21592159
\endrst */

0 commit comments

Comments
 (0)