[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
This commit is contained in:
Will Hawkins 2022-06-02 19:43:11 +02:00 committed by Mark de Wever
parent 5fee1799f4
commit 7b291b6f50
1 changed files with 3 additions and 3 deletions

View File

@ -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>
{