Skip to content

Commit 72e8e8f

Browse files
authored
chore: minor improvement for docs (#1307)
Signed-off-by: rustversion <[email protected]>
1 parent 212ffcf commit 72e8e8f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const options: SupportOptions = {
1010
category: CATEGORY_GLOBAL,
1111
type: 'int',
1212
default: 80,
13-
description: 'The line length where Prettier will try wrap.',
13+
description: 'The line length where Prettier will try to wrap.',
1414
range: { start: 0, end: Number.POSITIVE_INFINITY, step: 1 }
1515
},
1616
tabWidth: {

src/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function parse(text, _parsers, options = _parsers) {
5959
ctx.value = options.singleQuote ? `hex'${value}'` : `hex"${value}"`;
6060
},
6161
Conditional(ctx) {
62-
// TODO: while the behaviour is not stable, it should be behind the
62+
// TODO: while the behavior is not stable, it should be behind the
6363
// experimentalTernaries flag.
6464
if (options.experimentalTernaries) {
6565
// We can remove parentheses only because we are sure that the
@@ -91,7 +91,7 @@ function parse(text, _parsers, options = _parsers) {
9191
ctx.left = tryHug(ctx.left, ['*', '/', '%']);
9292
break;
9393
case '**':
94-
// If the compiler has not been given as an option using we leave
94+
// If the compiler has not been given as an option we leave
9595
// a**b**c.
9696
if (!compiler) break;
9797

src/slangSolidityParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function parse(
2020
options
2121
);
2222

23-
// Because of comments being extracted like a russian doll, the order needs
23+
// Because of comments being extracted like a Russian doll, the order needs
2424
// to be fixed at the end.
2525
parsed.comments = clearComments().sort((a, b) => a.loc.start - b.loc.start);
2626
clearOffsets();

0 commit comments

Comments
 (0)