Skip to content

Commit

Permalink
docfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Sep 6, 2023
1 parent 7d7a51e commit 1158a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Swarm/Util/UnitInterval.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- |
-- SPDX-License-Identifier: BSD-3-Clause
--
-- Creation and utilities for tge unit interval
-- Creation and utilities for the unit interval
module Swarm.Util.UnitInterval (
UnitInterval,
getValue,
Expand All @@ -16,7 +16,7 @@ newtype UnitInterval a = UnitInterval
{ getValue :: a
}

-- | Guarantees that the stored interval falls on the range
-- | Guarantees that the stored value falls within the closed interval
-- @[0, 1]@. It is up to clients to ensure that the promotion
-- to this type is lossless.
mkInterval :: (Ord a, Num a) => a -> UnitInterval a
Expand Down

0 comments on commit 1158a52

Please sign in to comment.