Skip to content

Commit 2724888

Browse files
committed
Fix "beginning" spelling, closes #390
1 parent 65bd0a5 commit 2724888

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/common.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ struct comment
123123
struct string_parts {
124124
struct cpp_code { std::string text; };
125125
struct raw_string { std::string text; };
126-
enum adds_sequences { no_ends = 0, on_the_begining = 1, on_the_end = 2, on_both_ends = 3 };
126+
enum adds_sequences { no_ends = 0, on_the_beginning = 1, on_the_end = 2, on_both_ends = 3 };
127127

128128
string_parts(const std::string& beginseq,
129129
const std::string& endseq,
@@ -132,7 +132,7 @@ struct string_parts {
132132
, end_seq{endseq}
133133
, strategy{strateg}
134134
{
135-
if (!(strategy & on_the_begining)) {
135+
if (!(strategy & on_the_beginning)) {
136136
parts.push_back(raw_string{""});
137137
}
138138
}
@@ -146,7 +146,7 @@ struct string_parts {
146146
auto generate() const -> std::string {
147147

148148
if (parts.empty()) {
149-
return (strategy & on_the_begining ? begin_seq : std::string{})
149+
return (strategy & on_the_beginning ? begin_seq : std::string{})
150150
+ (strategy & on_the_end ? end_seq : std::string{});
151151
}
152152

@@ -192,7 +192,7 @@ struct string_parts {
192192
adds_sequences strategy;
193193

194194
auto operator()(const raw_string& part) const -> std::string {
195-
return (strategy & on_the_begining ? begin_seq : "") + part.text;
195+
return (strategy & on_the_beginning ? begin_seq : "") + part.text;
196196
}
197197
auto operator()(const cpp_code& part) const -> std::string {
198198
return part.text;

source/lex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ auto lex_line(
13261326
if (interpolate_raw_string(
13271327
opening_seq,
13281328
closing_seq,
1329-
string_parts::on_the_begining,
1329+
string_parts::on_the_beginning,
13301330
std::string_view(&line[paren_pos+1], std::ssize(line)-(paren_pos+1)), i, std::ssize(line)-i)
13311331
) {
13321332
continue;

0 commit comments

Comments
 (0)