From 5ea2ed07f2526416118d5a5917b5ad6782810270 Mon Sep 17 00:00:00 2001 From: Andrew Martin Date: Thu, 25 Apr 2024 07:51:10 -0400 Subject: [PATCH] Update src/Data/Primitive/Contiguous/Class.hs Co-authored-by: Dave Barton --- src/Data/Primitive/Contiguous/Class.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Data/Primitive/Contiguous/Class.hs b/src/Data/Primitive/Contiguous/Class.hs index 4941e72..15dbeca 100644 --- a/src/Data/Primitive/Contiguous/Class.hs +++ b/src/Data/Primitive/Contiguous/Class.hs @@ -575,6 +575,7 @@ class (Contiguous arr) => ContiguousU arr where -- uninitialized memory at these indices. But for @SmallMutableArray@ or @Array@, these -- are set to an error thunk, so reading from them and forcing the result -- causes the program to crash. For @UnliftedArray@, the new elements have undefined values of an unknown type. + -- If the array is not grown, it may (or may not) be modified in place. resize :: (PrimMonad m, Element arr b) => Mutable arr (PrimState m) b ->