Skip to content

Commit

Permalink
chore: add const correctness
Browse files Browse the repository at this point in the history
Add const correctness.
  • Loading branch information
melg8 committed Dec 14, 2024
1 parent 01e8770 commit 23b5a29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/swarm/library/sources/json/placeholder_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ inline void WriteLineNumber(size_t line_number,
hex_view.Append(' ');
}

[[nodiscard]] inline std::span<const char> SpanFrom(const char* text) noexcept {
[[nodiscard]] inline std::span<const char> SpanFrom(
const char* const text) noexcept {
return std::span(text, std::strlen(text));
}

Expand Down

0 comments on commit 23b5a29

Please sign in to comment.