Skip to content

Commit 6302cd2

Browse files
Fix typo's and improve wording in Experimental Rules (#3010)
1 parent 62ade4f commit 6302cd2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

documentation/snapshot/docs/rules/experimental.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Also see [enable/disable specific rules](../configuration-ktlint/#disabled-rules
1010

1111
## Blank line between when-conditions
1212

13-
Consistently add or remove blank line between when-conditions in a when-statement. A blank line is only added between when-conditions if the when-statement contains at lease one multiline when-condition. If a when-statement only contains single line when-conditions, then the blank lines between the when-conditions are removed.
13+
Consistently add or remove a blank line between when-conditions in a when-statement. A blank line is only added between when-conditions if the when-statement contains at lease one multiline when-condition. If a when-statement only contains single line when-conditions, then the blank lines between the when-conditions are removed.
1414

1515
!!! note
1616
Ktlint uses `.editorconfig` property `ij_kotlin_line_break_after_multiline_when_entry` but applies it also on single line entries to increase consistency.
@@ -130,7 +130,7 @@ Suppress or disable rule (1)
130130
KDoc's should only be used on elements for which KDoc is to be transformed to documentation. Normal block comments should be used in other cases.
131131
132132
!!! note:
133-
Access modifiers are ignored. Strictly speaking, one could argue that private declarations should not have a KDoc as no documentation will be generated for it. However, for internal use of developers the KDoc still serves documentation purposes.
133+
Access modifiers are ignored. Strictly speaking, one could argue that private declarations should not have a KDoc as no documentation will be generated for it. However, for internal use of developers, the KDoc still serves documentation purposes.
134134
135135
=== "[:material-heart:](#) Ktlint"
136136
@@ -200,7 +200,7 @@ Suppress or disable rule (1)
200200
201201
## Mixed condition operators
202202
203-
Conditions should not use a both `&&` and `||` operators between operators at the same level. By using parenthesis the expression is to be clarified.
203+
Conditions cannot use both `&&` and `||` operators between operators at the same level. By using parenthesis the expression is to be clarified.
204204
205205
=== "[:material-heart:](#) Ktlint"
206206
@@ -237,7 +237,7 @@ Suppress or disable rule (1)
237237
238238
## Square brackets spacing
239239
240-
Check for spacing around square brackets.
240+
Checks for spacing around square brackets.
241241
242242
=== "[:material-heart:](#) Ktlint"
243243
@@ -287,7 +287,7 @@ Suppress or disable rule (1)
287287
288288
## When-entry bracing
289289
290-
Enforce consistent usages of braces inside the when-statement. All when-entries in the when-statement should use braces around their bodies in case at least one when-entry has a multiline body, or when the body is surrounded by braces.
290+
Enforces consistent usages of braces inside the when-statement. All when-entries in the when-statement should use braces around their bodies in case at least one when-entry has a multiline body, or when the body is surrounded by braces.
291291
292292
Braces are helpful for following reasons:
293293

0 commit comments

Comments
 (0)