File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,11 @@ struct Nullable : protected std::optional<T>
110
110
bool operator ==(const T & other) const { return std::optional<T>::has_value () && (**this == other); }
111
111
bool operator !=(const T & other) const { return !(*this == other); }
112
112
113
- // backwards compatibiltiyt with old chip::Optional functionality
113
+ // backwards compatibility with old chip::Nullable method names
114
+ //
114
115
// 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.
116
118
T & Value () & { return value (); }
117
119
const T & Value () const & { return value (); }
118
120
const T & ValueOr (const T & defaultValue) const { return value_or (defaultValue); }
You can’t perform that action at this time.
0 commit comments