Skip to content

Commit 23c4948

Browse files
committed
Fix documentation typos and improve comments in Nullness module
1 parent 11e3b05 commit 23c4948

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/FsToolkit.ErrorHandling/Nullness.fs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
namespace FsToolkit.ErrorHandling
22

3+
(*
4+
This Polyfills the F# 9.0 and later types for nullability, which are not available in earlier versions of F# or in Fable.
5+
This is useful for keeping compatibility with older versions of F# or when using Fable, which does not support the new nullability features.
6+
*)
7+
8+
39
open System
410

511
/// Represents errors that occur during application execution. In F# 9.0 and later, this type is marked as nullable.
@@ -63,10 +69,10 @@ type ResizeArrayNull<'T> =
6369
module internal Nullness =
6470

6571
#if NET9_0_OR_GREATER && !FABLE_COMPILER
66-
/// Throw a System.ArgumentNullException if the given value is null exceptio
72+
/// Throw a System.ArgumentNullException if the given value is null exception
6773
let inline nullArgCheck name value = nullArgCheck name value
6874
#else
69-
/// Throw a System.ArgumentNullException if the given value is null exceptio
75+
/// Throw a System.ArgumentNullException if the given value is null exception
7076
let inline nullArgCheck (name: string) (value: 'T) : 'T =
7177
if isNull value then
7278
raise (ArgumentNullException(name))

0 commit comments

Comments
 (0)