From e1126aafd2903d0411693ab72aa4266eb14209e5 Mon Sep 17 00:00:00 2001 From: Igor Pugachev Date: Fri, 3 Oct 2025 09:54:12 +0200 Subject: [PATCH] fix variant_variadic documentation (#1194) * fix variant_variadic default constructor documentation * fix valueless doc --- include/etl/private/variant_variadic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/etl/private/variant_variadic.h b/include/etl/private/variant_variadic.h index 618e2366..8ec3f195 100644 --- a/include/etl/private/variant_variadic.h +++ b/include/etl/private/variant_variadic.h @@ -459,7 +459,7 @@ namespace etl //*************************************************************************** /// Default constructor. - /// Sets the state of the instance to containing no valid data. + /// Constructs a variant holding the value-initialized value of the first alternative (index() is zero). //*************************************************************************** #include "diagnostic_uninitialized_push.h" ETL_CONSTEXPR14 variant() @@ -779,8 +779,8 @@ namespace etl } //*************************************************************************** - /// Checks whether a valid value is currently stored. - ///\return true if the value is valid, otherwise false. + /// Checks whether the variant doesn't contain a valid value. + ///\return true if the value is invalid, otherwise false. //*************************************************************************** constexpr bool valueless_by_exception() const ETL_NOEXCEPT {