[libcxx-commits] [libcxx] 7b291b6 - [libc++] Fix typo in comment at __optional_storage_base

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 2 10:46:20 PDT 2022


Author: Will Hawkins
Date: 2022-06-02T19:46:04+02:00
New Revision: 7b291b6f5095bff1ef33e806aaea58f5b3156ce8

URL: https://github.com/llvm/llvm-project/commit/7b291b6f5095bff1ef33e806aaea58f5b3156ce8
DIFF: https://github.com/llvm/llvm-project/commit/7b291b6f5095bff1ef33e806aaea58f5b3156ce8.diff

LOG: [libc++] Fix typo in comment at __optional_storage_base

Small typo fix(es) for struct definition of __optional_storage_base for
a reference type.

Reviewed By: #libc, jloser, philnik

Differential Revision: https://reviews.llvm.org/D126621

Added: 
    

Modified: 
    libcxx/include/optional

Removed: 
    


################################################################################
diff  --git a/libcxx/include/optional b/libcxx/include/optional
index ed6ce9fc07977..b1e014efd2c1c 100644
--- a/libcxx/include/optional
+++ b/libcxx/include/optional
@@ -393,9 +393,9 @@ struct __optional_storage_base : __optional_destruct_base<_Tp>
     }
 };
 
-// optional<T&> is currently required ill-formed, however it may to be in the
-// future. For this reason it has already been implemented to ensure we can
-// make the change in an ABI compatible manner.
+// optional<T&> is currently required to be ill-formed. However, it may
+// be allowed in the future. For this reason, it has already been implemented
+// to ensure we can make the change in an ABI-compatible manner.
 template <class _Tp>
 struct __optional_storage_base<_Tp, true>
 {


        


More information about the libcxx-commits mailing list