Skip to content

Commit

Permalink
Comment for loopFromSegments.
Browse files Browse the repository at this point in the history
  • Loading branch information
cchalmers committed Mar 9, 2015
1 parent 471662b commit 7e72384
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Diagrams/Trail.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
-----------------------------------------------------------------------------
-- |
-- Module : Diagrams.Trail
-- Copyright : (c) 2013 diagrams-lib team (see LICENSE)
-- Copyright : (c) 2013-2015 diagrams-lib team (see LICENSE)
-- License : BSD-style (see LICENSE)
-- Maintainer : diagrams-discuss@googlegroups.com
--
Expand Down Expand Up @@ -856,7 +856,8 @@ lineFromSegments :: (Metric v, OrderedField n)
=> [Segment Closed v n] -> Trail' Line v n
lineFromSegments = Line . SegTree . FT.fromList

-- | @trailFromSegments === 'wrapTrail' . 'lineFromSegments'@, for
-- | Contruct a loop from a list of close segments and an open segment

This comment has been minimized.

Copy link
@byorgey

byorgey Mar 11, 2015

Member

s/close/closed/

-- that completes the loop.
loopFromSegments :: (Metric v, OrderedField n)
=> [Segment Closed v n] -> Segment Open v n -> Trail' Loop v n
loopFromSegments segs = Loop (SegTree (FT.fromList segs))
Expand Down

0 comments on commit 7e72384

Please sign in to comment.