Skip to content

Commit

Permalink
Update include/pybind11/pytypes.h
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
  • Loading branch information
oleksandr-pavlyk and Skylion007 authored Apr 12, 2022
1 parent f74a1c9 commit 15e43ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/pytypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ class capsule : public object {
const char *name() const { return PyCapsule_GetName(m_ptr); }

/// Replaces a capsule's name *without* calling the destructor on the existing one.
void set_name(const char *&new_name) {
void set_name(const char *new_name) {
if (PyCapsule_SetName(m_ptr, new_name) != 0) {
throw error_already_set();
}
Expand Down

0 comments on commit 15e43ef

Please sign in to comment.