From e743f3ce714b5e06860b97f23e7b0696e47f78b7 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Wed, 24 Aug 2016 11:11:21 -0400 Subject: [PATCH] Minor doc updates --- pyeris/core/optimizer-glue.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyeris/core/optimizer-glue.hpp b/pyeris/core/optimizer-glue.hpp index 55d99a6..86ecdc0 100644 --- a/pyeris/core/optimizer-glue.hpp +++ b/pyeris/core/optimizer-glue.hpp @@ -32,11 +32,11 @@ protected: if (not parent_->hasSimulation()) throw std::logic_error("pyeris InterBegin wrapper added before parent"); dependsOn(parent_); } - /// Returns the parent, cast to a py::object + /// Returns the parent (i.e. the member we are glue for), cast to a py::object py::object parent() const { return py::cast(parent_.get()); } /** Returns a py::function object that, when called, calls the given (python) method on the * parent. Call `.check()` on the returned object to determine whether the method actually - * exists--invoking the function without checking will trigger an exception for non-existant + * exists--invoking the function without checking will trigger an exception for non-existent * methods. */ py::function method(const char* name) const { return py::function(parent().attr(name)); } -- 2.22.0