We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c95835 commit 07aa04aCopy full SHA for 07aa04a
docs/content/how-tos/rules/FL0089.md
@@ -14,7 +14,10 @@ Rule to detect usage of lists or arrays with only one item.
14
15
## Rationale
16
17
-List.singleton/Array.singleton is more readable and explicit than [ foo]/[| foo |].
+`List.singleton foo`/`Array.singleton foo` is more readable and explicit than `[foo]`/`[|foo|]`.
18
+Especially if we take in account that F# newbies may not yet be familiar with the difference between
19
+inline array vs list instantiation; and square brackets with only one element could potentially be
20
+confused with an indexing accessor.
21
22
## How To Fix
23
0 commit comments