Skip to content

Commit

Permalink
Codespell caught typos
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-downey committed Oct 12, 2024
1 parent ad0ca22 commit 37f23a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/beman/optional26/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class optional; // partially freestanding
template <class T>
inline constexpr bool std::ranges::enable_view<beman::optional26::optional<T>> = true;

// Itereators for optional<T&> have life times that are not tied to the optional.
// Iterators for optional<T&> have life times that are not tied to the optional.
template <class T>
inline constexpr bool std::ranges::enable_borrowed_range<beman::optional26::optional<T>> = std::is_reference_v<T>;

Expand Down
2 changes: 1 addition & 1 deletion src/beman/optional26/tests/optional_ref.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,5 +822,5 @@ TEST(OptionalRefTest, OverloadResolutionChecksDangling) {
// char const* cstr = "Text";
// std::string s = cstr;
// process(s); // Picks, `optional<std::string const&>` overload
// // process(cstr); // Ambigous, but only std::optional<char const* const&>
// // process(cstr); // Ambiguous, but only std::optional<char const* const&>
// }

0 comments on commit 37f23a7

Please sign in to comment.