We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8996685 commit 7524b5cCopy full SHA for 7524b5c
vector/src/Data/Vector/Mutable.hs
@@ -358,16 +358,16 @@ clone = G.clone
358
--
359
-- >>> MV.write mv' 3 999
360
-- >>> MV.write mv' 4 777
361
--- >>> V.unsafeFreeze mv'
+-- >>> V.freeze mv'
362
-- [10,20,30,999,777]
363
364
-- It is important to note that the source mutable vector is not affected when
365
-- the newly allocated one is mutated.
366
367
-- >>> MV.write mv' 2 888
368
369
-- [10,20,888,999,777]
370
--- >>> V.unsafeFreeze mv
+-- >>> V.freeze mv
371
-- [10,20,30]
372
373
-- @since 0.5
0 commit comments