Skip to content

Commit 006bbf5

Browse files
authored
docs: Fix a few typos (#3172)
There are small typos in: - docs/dev-ast-memory.md - src/prelexer.cpp - src/prelexer.hpp - src/sass2scss.cpp - src/util.cpp Fixes: - Should read `meaningful` rather than `meaningfull`. - Should read `whitespace` rather than `whitepace`. - Should read `should` rather than `shoud`. - Should read `specific` rather than `sepecific`.
1 parent b035bc3 commit 006bbf5

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

docs/dev-ast-memory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ define DEBUG_SHARED_PTR
200200
```
201201

202202
This will print lost memory on exit to stderr. You can also use
203-
`setDbg(true)` on sepecific variables to emit reference counter
203+
`setDbg(true)` on specific variables to emit reference counter
204204
increase, decrease and other events.
205205

206206

src/prelexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ namespace Sass {
305305
const char* css_whitespace(const char* src) {
306306
return one_plus< alternatives<spaces, line_comment> >(src);
307307
}
308-
// Match optional_css_whitepace plus block_comments
308+
// Match optional_css_whitespace plus block_comments
309309
const char* optional_css_comments(const char* src) {
310310
return zero_plus< alternatives<spaces, line_comment, block_comment> >(src);
311311
}

src/prelexer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ namespace Sass {
189189
// Match zero plus white-space or line_comments
190190
const char* optional_css_whitespace(const char* src);
191191
const char* css_whitespace(const char* src);
192-
// Match optional_css_whitepace plus block_comments
192+
// Match optional_css_whitespace plus block_comments
193193
const char* optional_css_comments(const char* src);
194194
const char* css_comments(const char* src);
195195

src/sass2scss.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ namespace Sass
179179
while (true)
180180
{
181181

182-
// try to find some meaningfull char
182+
// try to find some meaningful char
183183
col_pos = sass.find_first_not_of(" \t\n\v\f\r", col_pos);
184184

185-
// there was no meaningfull char found
185+
// there was no meaningful char found
186186
if (col_pos == std::string::npos) return false;
187187

188188
// found a multiline comment opener
@@ -467,7 +467,7 @@ namespace Sass
467467
// right trim input
468468
sass = rtrim(sass);
469469

470-
// get position of first meaningfull character in string
470+
// get position of first meaningful character in string
471471
size_t pos_left = sass.find_first_not_of(SASS2SCSS_FIND_WHITESPACE);
472472

473473
// special case for final run
@@ -479,7 +479,7 @@ namespace Sass
479479
// just add complete whitespace
480480
converter.whitespace += sass + "\n";
481481
}
482-
// have meaningfull first char
482+
// have meaningful first char
483483
else
484484
{
485485

@@ -683,7 +683,7 @@ namespace Sass
683683
// not in comment mode
684684
if (IS_PARSING(converter))
685685
{
686-
// has meaningfull chars
686+
// has meaningful chars
687687
if (hasCharData(sass))
688688
{
689689
// is probably a property
@@ -698,7 +698,7 @@ namespace Sass
698698
// not in comment mode
699699
if (IS_PARSING(converter))
700700
{
701-
// had meaningfull chars
701+
// had meaningful chars
702702
if (converter.property)
703703
{
704704
// print block opener
@@ -758,22 +758,22 @@ namespace Sass
758758
scss += flush(sass, converter);
759759
}
760760

761-
// get position of last meaningfull char
761+
// get position of last meaningful char
762762
size_t pos_right = sass.find_last_not_of(SASS2SCSS_FIND_WHITESPACE);
763763

764764
// check for invalid result
765765
if (pos_right != std::string::npos)
766766
{
767767

768-
// get the last meaningfull char
768+
// get the last meaningful char
769769
std::string close = sass.substr(pos_right, 1);
770770

771771
// check if next line should be concatenated (list mode)
772772
converter.comma = IS_PARSING(converter) && close == ",";
773773
converter.semicolon = IS_PARSING(converter) && close == ";";
774774

775775
// check if we have more than
776-
// one meaningfull char
776+
// one meaningful char
777777
if (pos_right > 0)
778778
{
779779

@@ -785,10 +785,10 @@ namespace Sass
785785
}
786786

787787
}
788-
// EO have meaningfull chars from end
788+
// EO have meaningful chars from end
789789

790790
}
791-
// EO have meaningfull chars from start
791+
// EO have meaningful chars from start
792792

793793
// return scss
794794
return scss;

src/util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ namespace Sass {
306306
// if (cp == '\n') cp = 32;
307307

308308
// use a very simple approach to convert via utf8 lib
309-
// maybe there is a more elegant way; maybe we shoud
309+
// maybe there is a more elegant way; maybe we should
310310
// convert the whole output from string to a stream!?
311311
// allocate memory for utf8 char and convert to utf8
312312
unsigned char u[5] = {0,0,0,0,0}; utf8::append(cp, u);
@@ -395,7 +395,7 @@ namespace Sass {
395395
// if (cp == '\n') cp = 32;
396396

397397
// use a very simple approach to convert via utf8 lib
398-
// maybe there is a more elegant way; maybe we shoud
398+
// maybe there is a more elegant way; maybe we should
399399
// convert the whole output from string to a stream!?
400400
// allocate memory for utf8 char and convert to utf8
401401
unsigned char u[5] = {0,0,0,0,0}; utf8::append(cp, u);

0 commit comments

Comments
 (0)