Skip to content

Commit

Permalink
Merge pull request #1504 from Thorium/docs-update
Browse files Browse the repository at this point in the history
Updated fsdocs-tool to v20 stable
  • Loading branch information
cartermp authored Mar 13, 2024
2 parents 06a3801 + d5a8925 commit 674cacf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"fsdocs-tool": {
"version": "20.0.0-alpha-009",
"version": "20.0.0",
"commands": [
"fsdocs"
]
Expand Down
12 changes: 5 additions & 7 deletions docs/library/JsonProvider.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ If the loaded file does not match the structure of the sample, a runtime error m
</div>
</div>
The type provider is located in the `FSharp.Data.dll` assembly and namespace: *)
The type provider is located in the `FSharp.Data.dll` assembly and namespace:
*)

open FSharp.Data

Expand Down Expand Up @@ -232,13 +233,13 @@ open FSharp.Data.Runtime.StructuralInference

type AmbiguousEntity2 =
JsonProvider<Sample="""
{ "code":"typeof<string>", "length":"typeof<float<metre>>" }
{ "code":"typeof<string>", "length":"typeof< float<metre> >" }
{ "code":"123", "length":"42" }
{ "code":"4E5", "length":"1.83" }
""", SampleIsList=true, InferenceMode=InferenceMode.ValuesAndInlineSchemasOverrides>

let code2 = (AmbiguousEntity2.GetSamples()[1]).Code
let length2 = (AmbiguousEntity2.GetSamples()[1]).Length
let code2 = (AmbiguousEntity2.GetSamples().[1]).Code
let length2 = (AmbiguousEntity2.GetSamples().[1]).Length

(*** include-fsi-merged-output ***)

Expand Down Expand Up @@ -270,9 +271,6 @@ inline schemas types are merged with other inferred types with the same preceden
Since values-inferred types never have units, inline-schemas-inferred types will lose their
unit if the sample contains other values...
*)

(**
## Loading WorldBank data
Expand Down

0 comments on commit 674cacf

Please sign in to comment.