Skip to content

Commit e831877

Browse files
Fix: typos in comments BIS
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 0130f8d commit e831877

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/node_dotenv.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,18 @@ void Dotenv::ParseContent(const std::string_view input) {
149149
auto newline = content.find('\n');
150150
if (newline != std::string_view::npos) {
151151
// If a newline is found, remove the comment line including the
152-
// newline character
152+
// newline character.
153153
content.remove_prefix(newline + 1);
154154
}
155155
}
156156

157157
// Skip the remaining code in the loop and continue with the next
158-
// iteration
158+
// iteration.
159159
continue;
160160
}
161161

162-
// Find the next equals sign or newline in a single pass
163-
// This optimizes the search by avoiding multiple iterations
162+
// Find the next equals sign or newline in a single pass.
163+
// This optimizes the search by avoiding multiple iterations.
164164
auto equal_or_newline = content.find_first_of("=\n");
165165

166166
// If we found nothing or found a newline before equals, the line is invalid
@@ -187,7 +187,7 @@ void Dotenv::ParseContent(const std::string_view input) {
187187

188188
content = trim_spaces(content);
189189

190-
// Skip lines with empty keys after trimming spaces
190+
// Skip lines with empty keys after trimming spaces.
191191
// Examples of invalid keys that would be skipped:
192192
// =value
193193
// " "=value

0 commit comments

Comments
 (0)