Skip to content

Commit 810758c

Browse files
committed
Typo fixes
1 parent 4b0e5d9 commit 810758c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/data-model/Nullable.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,11 @@ struct Nullable : protected std::optional<T>
110110
bool operator==(const T & other) const { return std::optional<T>::has_value() && (**this == other); }
111111
bool operator!=(const T & other) const { return !(*this == other); }
112112

113-
// backwards compatibiltiyt with old chip::Optional functionality
113+
// backwards compatibility with old chip::Nullable method names
114+
//
114115
// NOTE: as we transition to std::optional, these should be removed
115-
// We expect only `value` and `value_or` to remain.
116+
// We expect only `value` and `value_or` to remain as standard names
117+
// for both nullable and optional.
116118
T & Value() & { return value(); }
117119
const T & Value() const & { return value(); }
118120
const T & ValueOr(const T & defaultValue) const { return value_or(defaultValue); }

0 commit comments

Comments
 (0)