Skip to content

Commit b4afa99

Browse files
committed
fix formatting; fix typo
1 parent 9739f99 commit b4afa99

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/Compiler/Facilities/CompilerLocation.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ module internal FSharpEnvironment =
299299
// How to find dotnet.exe --- woe is me; probing rules make me sad.
300300
// Algorithm:
301301
// 1. Look for DOTNET_HOST_PATH environment variable
302-
// this is the main user programable override .. provided by user to find a specific dotnet.exe
302+
// this is the main user programmable override .. provided by user to find a specific dotnet.exe
303303
// 2. Probe for are we part of an .NetSDK install
304304
// In an sdk install we are always installed in: sdk\3.0.100-rc2-014234\FSharp
305305
// dotnet or dotnet.exe will be found in the directory that contains the sdk directory

src/Compiler/SyntaxTree/SyntaxTreeOps.fs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,13 @@ let getTypeFromTuplePath (path: SynTupleTypeSegment list) : SynType list =
10281028
let (|MultiDimensionArrayType|_|) (t: SynType) =
10291029
match t with
10301030
| SynType.App(StripParenTypes(SynType.LongIdent(SynLongIdent([ identifier ], _, _))), _, [ elementType ], _, _, true, m) ->
1031-
if System.Text.RegularExpressions.Regex.IsMatch(identifier.idText, "^array\d\d?d$", System.Text.RegularExpressions.RegexOptions.ECMAScript) then
1031+
if
1032+
System.Text.RegularExpressions.Regex.IsMatch(
1033+
identifier.idText,
1034+
"^array\d\d?d$",
1035+
System.Text.RegularExpressions.RegexOptions.ECMAScript
1036+
)
1037+
then
10321038
let rank =
10331039
identifier.idText |> Seq.filter isDigit |> Seq.toArray |> System.String |> int
10341040

0 commit comments

Comments
 (0)