Skip to content

Commit

Permalink
iox-#1751 Fix typo in docs
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Hoinkis <[email protected]>
  • Loading branch information
mossmaurice committed Oct 25, 2022
1 parent e8a62bb commit eb19aa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion iceoryx_hoofs/include/iceoryx_hoofs/cxx/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class optional : public FunctionalInterface<optional<T>, T, void>
/// @return true if the contained values are not equal, otherwise false
constexpr bool operator!=(const optional<T>& rhs) const noexcept;

/// @brief Comparision with nullopt_t for easier unset optional comparison
/// @brief comparison with nullopt_t for easier unset optional comparison
/// @return true if the optional is set, otherwise false
constexpr bool operator!=(const nullopt_t& rhs) const noexcept;

Expand Down
10 changes: 5 additions & 5 deletions iceoryx_hoofs/memory/include/iox/unique_ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,20 +125,20 @@ class unique_ptr final
// AXIVION DISABLE STYLE AutosarC++19_03-A13.5.5: Parameters are explicitly not identical to compare two unique_ptr's
// using different types. STL definies them similarly.

/// @brief comparision for two distinct unique_ptr types
/// @brief comparison for two distinct unique_ptr types
/// @tparam T underlying type of lhs
/// @tparam U underlying type of rhs
/// @param[in] lhs left side of the comparision
/// @param[in] rhs right side of the comparision
/// @param[in] lhs left side of the comparison
/// @param[in] rhs right side of the comparison
/// @return true if the pointers are equal, otherwise false
template <typename T, typename U>
bool operator==(const unique_ptr<T>& lhs, const unique_ptr<U>& rhs) noexcept;

/// @brief inequality check for two distinct unique_ptr types
/// @tparam T underlying type of lhs
/// @tparam U underlying type of rhs
/// @param[in] lhs left side of the comparision
/// @param[in] rhs right side of the comparision
/// @param[in] lhs left side of the comparison
/// @param[in] rhs right side of the comparison
/// @return true if the pointers are not equal, otherwise false
template <typename T, typename U>
bool operator!=(const unique_ptr<T>& lhs, const unique_ptr<U>& rhs) noexcept;
Expand Down

0 comments on commit eb19aa0

Please sign in to comment.