Skip to content

Commit

Permalink
[docs] Add missing word in embind.rst (#23489)
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken authored Jan 24, 2025
1 parent fd52f0a commit 4f8880f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ Class properties can be defined several ways as seen below.
class_<Person>("Person")
.constructor<>()
// Bind directly to a class member with automatically generated getters/setters using a
// reference return policy so the object does not need to be deleted JS.
// reference return policy so the object does not need to be deleted from JS.
.property("location", &Person::location, return_value_policy::reference())
// Same as above, but this will return a copy and the object must be deleted or it will
// leak!
Expand Down

0 comments on commit 4f8880f

Please sign in to comment.