From 3df0ee6fe36f85786477fb1d15dc68ea9087b073 Mon Sep 17 00:00:00 2001 From: JYX <1449843302@qq.com> Date: Fri, 2 Apr 2021 23:46:43 +0800 Subject: [PATCH] docs: typo in classes.rst (#2926) --- docs/advanced/classes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/classes.rst b/docs/advanced/classes.rst index 492790206..3dfc0c935 100644 --- a/docs/advanced/classes.rst +++ b/docs/advanced/classes.rst @@ -259,7 +259,7 @@ override the ``name()`` method): .. note:: - Note the trailing commas in the ``PYBIND11_OVERIDE`` calls to ``name()`` + Note the trailing commas in the ``PYBIND11_OVERRIDE`` calls to ``name()`` and ``bark()``. These are needed to portably implement a trampoline for a function that does not take any arguments. For functions that take a nonzero number of arguments, the trailing comma must be omitted.