Skip to content

Commit

Permalink
Update vector/src/Data/Vector/Generic.hs
Browse files Browse the repository at this point in the history
Co-authored-by: konsumlamm <[email protected]>
  • Loading branch information
Shimuuar and konsumlamm authored May 23, 2022
1 parent a71c021 commit 2b70f12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vector/src/Data/Vector/Generic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2206,10 +2206,10 @@ fromList :: Vector v a => [a] -> v a
fromList = unstream . Bundle.fromList

-- | /O(n)/ Convert the first @n@ elements of a list to a vector. It's
-- expected that supplied list will be exactly @n@ elements long. As
-- optimization this function allocates buffer for @n@ elements and
-- could be used to DoS by exhausting memory if attacker controls that
-- parameter.
-- expected that the supplied list will be exactly @n@ elements long. As
-- an optimization, this function allocates a buffer for @n@ elements, which
-- could be used for DoS-attacks by exhausting the memory if an attacker controls
-- that parameter.
--
-- @
-- fromListN n xs = 'fromList' ('take' n xs)
Expand Down

0 comments on commit 2b70f12

Please sign in to comment.