Ticket #2447 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Typo in Data.Set.split documentation

Reported by: jeffwheeler Owned by:
Priority: normal Milestone:
Component: Documentation Version: 6.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The documentation for Data.Set.split contains an awkward double-negative: ". . . is not found in neither set1 or set2." It should be ". . . is found in neither set1 nor set2."

-- | /O(log n)/. The expression (@'split' x set@) is a pair @(set1,set2)@
-- where all elements in @set1@ are lower than @x@ and all elements in
-- @set2@ larger than @x@. @x@ is not found in neither @set1@ nor @set2@.

Found here:  http://haskell.org/ghc/docs/latest/html/libraries/containers/src/Data-Set.html#split

Change History

Changed 5 years ago by ross

  • status changed from new to closed
  • resolution set to fixed

Reworded as

-- | /O(log n)/. The expression (@'split' x set@) is a pair @(set1,set2)@
-- where @set1@ comprises the elements of @set@ less than @x@ and @set2@
-- comprises the elements of @set@ greater than @x@.

patch: tighter description of split (addresses #2447)

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.