Skip to content

Commit e17b19e

Browse files
authored
Fix "nullable to primitive type" snippets in nullable-value-types.md (#44456)
1 parent 39bbc19 commit e17b19e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/fsharp/language-reference/nullable-value-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ You can also use an appropriate non-nullable operator to convert to a primitive
108108
open System
109109
open FSharp.Linq
110110
111-
let nullableInt = Nullable 10
112-
let nullableFloat = Nullable.float nullableInt
111+
let nullableFloat = Nullable 10.0
112+
let standardFloat = float nullableFloat
113113
114-
printfn $"value is %f{float nullableFloat}"
114+
printfn $"value is %f{float standardFloat}"
115115
```
116116

117117
You can also use nullable operators as a short-hand for checking `HasValue` and `Value`:

0 commit comments

Comments
 (0)