Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
agl-alexglopez committed Aug 16, 2024
1 parent b5e63b4 commit b24065f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions str_view/str_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
# define ATTRIB_PURE /**/
# define ATTRIB_CONST /**/
# define ATTRIB_NULLTERM(...) /**/

/* MSVC does not allow strong enforcement of string literals to the SV
str_view constructor. This is a dummy wrapper for compatibility. */
# define STR_LITERAL(str) str
Expand Down Expand Up @@ -94,9 +93,9 @@ typedef enum
One can even use this in code when string literals are used rather than
saved constants to avoid errors in str_view constructions.
for (str_view cur = sv_begin_tok(ref, SV(" "));
!sv_end_tok(ref_view, cur);
cur = sv_next_tok(ref_view, cur, SV(" "))
for (str_view cur = sv_begin_tok(src, SV(" "));
!sv_end_tok(src, cur);
cur = sv_next_tok(src, cur, SV(" "))
{}
However saving the str_view in a constant may be more convenient. */
Expand Down

0 comments on commit b24065f

Please sign in to comment.