Skip to content

Commit

Permalink
[libc++] Fix typo in comment at __optional_storage_base
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hawkinsw authored and mordante committed Jun 2, 2022
1 parent 5fee179 commit 7b291b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcxx/include/optional
Original file line number Diff line number Diff line change
Expand Up @@ -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>
{
Expand Down

0 comments on commit 7b291b6

Please sign in to comment.