Skip to content

Commit cd67802

Browse files
committed
Fix negate documentation example.
1 parent 0edb72f commit cd67802

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ArrayFire.hs

+4-2
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,10 @@ import Data.Word
248248
-- [1 1 1 1]
249249
-- 10.0000
250250
--
251-
-- >>> negate (scalar @Double 1 [10])
252-
-- -10.0
251+
-- >>> negate (scalar @Double 10)
252+
-- ArrayFire Array
253+
-- [1 1 1 1]
254+
-- -10.0000
253255
--
254256
-- >>> fromInteger 1.0 :: Array Double
255257
-- ArrayFire Array

0 commit comments

Comments
 (0)