Skip to content

Commit c1a3c3a

Browse files
committed
Fixing typos
1 parent 07cc794 commit c1a3c3a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/inc/sys_string/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@
153153

154154

155155
#if __cplusplus > 202302L && defined(__cpp_deleted_function) && __cpp_deleted_function >= 202403L
156-
#define SYS_STRING_DELETE_REASON(msg) = delete(msg)
156+
#define SYS_STRING_DELETE_REASON(msg) delete(msg)
157157
#else
158-
#define SYS_STRING_DELETE_REASON(msg) = delete
158+
#define SYS_STRING_DELETE_REASON(msg) delete
159159
#endif
160160

161161
#endif

lib/inc/sys_string/impl/addition.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ namespace sysstr::util
151151

152152
friend auto operator+(addition && lhs, const sys_string_t<Storage> & rhs) noexcept
153153
{ return addition<Storage, addition, sys_string_t<Storage>>(std::move(lhs), rhs); }
154-
friend auto operator+(addition & lhs, char32_t rhs) noexcept
154+
friend auto operator+(addition && lhs, char32_t rhs) noexcept
155155
{ return addition<Storage, addition, char32_t>(std::move(lhs), rhs); }
156156
template <std::ranges::forward_range Range>
157157
friend auto operator+(addition && lhs, const Range & rhs) noexcept
@@ -177,7 +177,7 @@ namespace sysstr::util
177177
return builder.build();
178178
}
179179

180-
operator sys_string_t<Storage>() const & SYS_STRING_DELETE_REASON(
180+
operator sys_string_t<Storage>() const & = SYS_STRING_DELETE_REASON(
181181
"you must convert the result of sys_string_t addition to sys_string_t. Do not assign it to auto and carry around");
182182

183183
auto storage_size() const -> typename sys_string_t<Storage>::size_type

0 commit comments

Comments
 (0)