From 5110cff5eb71483000547a020d0dd75c1c7bcc9b Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 15 Jan 2021 17:48:46 +0100 Subject: [PATCH] Fix documentation for std::string_view's push/toJsonDocument function --- lib/json/reflector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/json/reflector.h b/lib/json/reflector.h index bb201be..7d7cb63 100644 --- a/lib/json/reflector.h +++ b/lib/json/reflector.h @@ -177,7 +177,7 @@ inline void push(Type reflectable, RAPIDJSON_NAMESPACE::Value &value, RAPIDJSON_ } /*! - * \brief Pushes the specified C-string to the specified value. + * \brief Pushes the specified std::string_view to the specified value. */ template > * = nullptr> inline void push(Type reflectable, RAPIDJSON_NAMESPACE::Value &value, RAPIDJSON_NAMESPACE::Document::AllocatorType &allocator) @@ -1018,7 +1018,7 @@ RAPIDJSON_NAMESPACE::Document toJsonDocument(const char *reflectable) } /*! - * \brief Serializes the specified \a reflectable which is a C-string. + * \brief Serializes the specified \a reflectable which is an std::string_view. */ template > * = nullptr> RAPIDJSON_NAMESPACE::Document toJsonDocument(std::string_view reflectable)