Skip to content

Commit 15e43ef

Browse files
Update include/pybind11/pytypes.h
Co-authored-by: Aaron Gokaslan <[email protected]>
1 parent f74a1c9 commit 15e43ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/pytypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,7 @@ class capsule : public object {
16401640
const char *name() const { return PyCapsule_GetName(m_ptr); }
16411641

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

0 commit comments

Comments
 (0)