Skip to content

Commit 66d8fab

Browse files
author
askeblad
authored
fix typos and reword (#828)
Typo and reword
1 parent ef473f7 commit 66d8fab

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

containers/docs/sequence.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defines the ``Seq`` data type.
1212
Short Example
1313
-------------
1414

15-
The following GHCi session shows some of the basic sequence funcitonality::
15+
The following GHCi session shows some of the basic sequence functionality::
1616

1717
-- Import the Seq type and operators for combining sequences unqualified.
1818
-- Import the rest of the Sequence module qualified.

containers/src/Data/Sequence/Internal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3360,8 +3360,8 @@ fromArray :: Ix i => Array i a -> Seq a
33603360
#ifdef __GLASGOW_HASKELL__
33613361
fromArray a = fromFunction (GHC.Arr.numElements a) (GHC.Arr.unsafeAt a)
33623362
where
3363-
-- The following definition uses (Ix i) constraing, which is needed for the
3364-
-- other fromArray definition.
3363+
-- The following definition uses an (Ix i) constraint, which is needed for
3364+
-- the other fromArray definition.
33653365
_ = Data.Array.rangeSize (Data.Array.bounds a)
33663366
#else
33673367
fromArray a = fromList2 (Data.Array.rangeSize (Data.Array.bounds a)) (Data.Array.elems a)

containers/src/Data/Set/Internal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,14 +1632,14 @@ maxView (Bin _ x l r) = Just $! toPair $ maxViewSure x l r
16321632
[ratio] is the ratio between an outer and inner sibling of the
16331633
heavier subtree in an unbalanced setting. It determines
16341634
whether a double or single rotation should be performed
1635-
to restore balance. It is correspondes with the inverse
1635+
to restore balance. It is corresponds with the inverse
16361636
of $\alpha$ in Adam's article.
16371637
16381638
Note that according to the Adam's paper:
16391639
- [delta] should be larger than 4.646 with a [ratio] of 2.
16401640
- [delta] should be larger than 3.745 with a [ratio] of 1.534.
16411641
1642-
But the Adam's paper is errorneous:
1642+
But the Adam's paper is erroneous:
16431643
- it can be proved that for delta=2 and delta>=5 there does
16441644
not exist any ratio that would work
16451645
- delta=4.5 and ratio=2 does not work

0 commit comments

Comments
 (0)