diff --git a/vector/src/Data/Vector/Generic.hs b/vector/src/Data/Vector/Generic.hs index af29b53e..518f8172 100644 --- a/vector/src/Data/Vector/Generic.hs +++ b/vector/src/Data/Vector/Generic.hs @@ -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)