summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2023-10-10 11:50:55 -0400
committerAndrew Opalach <andrew@akon.city> 2023-10-10 11:50:55 -0400
commit6ba81213e39875a6a50890de3b212dae8cff897b (patch)
treeec262982ee4a4ccf396be4fdb76cda255912a9af /src
parentdab8b0f3d8f0df6641af11d20c53a3bd5593180a (diff)
downloadlibalabaster-6ba81213e39875a6a50890de3b212dae8cff897b.tar.gz
libalabaster-6ba81213e39875a6a50890de3b212dae8cff897b.tar.bz2
libalabaster-6ba81213e39875a6a50890de3b212dae8cff897b.zip
Change comment formatting
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src')
-rw-r--r--src/str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/str.c b/src/str.c
index 2bb7fa9..e8e417d 100644
--- a/src/str.c
+++ b/src/str.c
@@ -67,7 +67,7 @@ bool al_str_get_line(str *buffer, char sep, str *line)
if (line->data == NULL) {
*line = *buffer;
} else if ((bytes = (u32)((line->data += line->len + 1) - buffer->data)) >= buffer->len) {
- // Move to the start of the assumed next line. If `bytes >= buffer->len`,
+ // Move to the start of the assumed next line. If bytes >= buffer->len,
// there is no next line.
return false;
}
@@ -77,7 +77,7 @@ bool al_str_get_line(str *buffer, char sep, str *line)
char *nl = (char *)al_memchr(line->data, sep, bytes);
- // If `!nl`, move to the end of the buffer.
+ // If !nl, move to the end of the buffer.
line->len = !nl ? bytes : (u32)(nl - line->data);
return true;