From d570700c21fb4478f0e7cbc4ca563a8fb41850e8 Mon Sep 17 00:00:00 2001 From: Tomas Grosup Date: Mon, 11 Nov 2024 14:35:45 +0100 Subject: [PATCH] Fix mistake in code sample for F# 9 --- docs/fsharp/whats-new/fsharp-9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fsharp/whats-new/fsharp-9.md b/docs/fsharp/whats-new/fsharp-9.md index db1dc98c987de..cc34a73336f8d 100644 --- a/docs/fsharp/whats-new/fsharp-9.md +++ b/docs/fsharp/whats-new/fsharp-9.md @@ -33,7 +33,7 @@ let getLength (x: string | null) = x.Length // gives a nullability warning since let len (str: string | null) = match str with | null -> -1 - | NonNull s -> s.Length // binds a non-null result + | s -> s.Length // binds a non-null result - compiler eliminated "null" after the first clause // Parameter to a function let len (str: string | null) =