From e72eaa47d20ab279117091a35703a469bedeb612 Mon Sep 17 00:00:00 2001 From: thorink Date: Fri, 17 Feb 2017 12:57:39 +0100 Subject: [PATCH] changed return_value:: to return_value_policy:: (#672) * changed return_value:: to return_value_policy:: * Update functions.rst --- docs/advanced/functions.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/advanced/functions.rst b/docs/advanced/functions.rst index 4a562bd5c..6c52ab1fa 100644 --- a/docs/advanced/functions.rst +++ b/docs/advanced/functions.rst @@ -90,9 +90,10 @@ The following table provides an overview of available policies: +--------------------------------------------------+----------------------------------------------------------------------------+ | :enum:`return_value_policy::automatic` | **Default policy.** This policy falls back to the policy | | | :enum:`return_value_policy::take_ownership` when the return value is a | -| | pointer. Otherwise, it uses :enum:`return_value::move` or | -| | :enum:`return_value::copy` for rvalue and lvalue references, respectively. | -| | See above for a description of what all of these different policies do. | +| | pointer. Otherwise, it uses :enum:`return_value_policy::move` or | +| | :enum:`return_value_policy::copy` for rvalue and lvalue references, | +| | respectively. See above for a description of what all of these different | +| | policies do. | +--------------------------------------------------+----------------------------------------------------------------------------+ | :enum:`return_value_policy::automatic_reference` | As above, but use policy :enum:`return_value_policy::reference` when the | | | return value is a pointer. This is the default conversion policy for |