Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2447 closed bug (fixed)

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 (3)

comment:1 Changed 6 years ago by ross

  • Resolution set to fixed
  • Status changed from new to closed

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)

comment:2 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:3 Changed 6 years ago by simonmar

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