From c58dd2c2af018616df01f45149666c118bd28973 Mon Sep 17 00:00:00 2001 From: Han Lu <11597940+ErbB4@users.noreply.github.com> Date: Thu, 1 Aug 2024 14:47:15 +0200 Subject: [PATCH] fixed wording (#2374) <!-- Please make sure your PR follows our [contribution guidelines](https://github.com/arbor-sim/arbor/tree/master/doc/contrib) and agree to the terms outlined in the [PR procedure](https://github.com/arbor-sim/arbor/tree/master/doc/contrib/pr.rst). --> --- doc/dev/util.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/dev/util.rst b/doc/dev/util.rst index e2f40d72..7db0d6f1 100644 --- a/doc/dev/util.rst +++ b/doc/dev/util.rst @@ -7,7 +7,7 @@ Utility wrappers and containers .. cpp:class:: unique_any - A container for a single value of any type that is move constructable. + A container for a single value of any type that is move constructible. Used in the Arbor API where a type of a value passed to or from the API is decided at run time. @@ -19,7 +19,7 @@ Utility wrappers and containers Retrieve the pointer as type T. If T is ``void *`` or the same as the type of the pointer stored in ``any_ptr``, return the held - value, cast accordingly. Otherwise return ``nullptr``. + value and cast accordingly. Otherwise, return ``nullptr``. ``any_ptr`` can be used with ``util::any_cast``, so that ``util::any_cast<T>(p)`` is equivalent to ``p.as<T>()`` for a value ``p`` -- GitLab