Skip to content

Commit d30b976

Browse files
authored
Fix docs for F# language (#17750)
1 parent 7bfb032 commit d30b976

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/release-notes/About.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: About
77

88
# About
99

10-
The release notes for the [F\# language](./Language.md), [FSharp.Core](./FSharp.Core.md) and [FSharp.Compiler.Service](./FSharp.Compiler.Service.md) are based on the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.
10+
The release notes for the [F\# language](./Language.html), [FSharp.Core](./FSharp.Core.html) and [FSharp.Compiler.Service](./FSharp.Compiler.Service.html) are based on the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.
1111
The target audience of these release notes are the respective end-users.
1212

1313
## Writing a changelog entry

docs/release-notes/Language.fsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ Directory.EnumerateFiles(path, "*.md")
2525
| "preview", "preview" -> 0
2626
| "preview", _ -> -1
2727
| _, "preview" -> 1
28-
| _, _ -> compare (int b) (int a))
28+
| _, _ ->
29+
match System.Decimal.TryParse(b), System.Decimal.TryParse(b) with
30+
| (true, a) , ( true, b) -> compare (int b) (int a)
31+
| _ -> failwithf "Cannot compare %s with %s" b a
32+
)
2933
|> Seq.map (fun file ->
3034
let version = Path.GetFileNameWithoutExtension(file)
3135
let version = if version = "preview" then "Preview" else version

0 commit comments

Comments
 (0)