Skip to content

Commit d1a13b0

Browse files
authored
Merge pull request #271 from vaerksted/master
fix spelling errors
2 parents 0ca0946 + 79bf721 commit d1a13b0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hackage-security/src/Hackage/Security/Client/Repository.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ data Repository down = DownloadedFile down => Repository {
181181
-- * Download the file from the repository and make it available at a
182182
-- temporary location
183183
-- * Use the provided file length to protect against endless data attacks.
184-
-- (Repositories such as local repositories that are not suspectible to
184+
-- (Repositories such as local repositories that are not susceptible to
185185
-- endless data attacks can safely ignore this argument.)
186186
-- * Move the file from its temporary location to its permanent location
187187
-- if verification succeeds.

hackage-security/src/Hackage/Security/Client/Repository/HttpLib.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ data HttpLib = HttpLib {
4545
-- HTTP servers are normally expected to respond to a range request with
4646
-- a "206 Partial Content" response. However, servers can respond with a
4747
-- "200 OK" response, sending the entire file instead (for instance, this
48-
-- may happen for servers that don't actually support range rqeuests, but
48+
-- may happen for servers that don't actually support range requests, but
4949
-- for which we optimistically assumed they did). Implementations of
5050
-- 'HttpLib' may accept such a response and inform the @hackage-security@
5151
-- library that the whole file is being returned; the security library can

hackage-security/src/Hackage/Security/Key.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ createKey' = liftM Some . createKey
145145
-- | The key ID of a key, by definition, is the hexdigest of the SHA-256 hash of
146146
-- the canonical JSON form of the key where the private object key is excluded.
147147
--
148-
-- NOTE: The FromJSON and ToJSON instances for KeyId are ntentially omitted. Use
149-
-- writeKeyAsId instead.
148+
-- NOTE: The FromJSON and ToJSON instances for KeyId are intentionally omitted.
149+
-- Use writeKeyAsId instead.
150150
newtype KeyId = KeyId { keyIdString :: String }
151151
deriving (Show, Eq, Ord)
152152

0 commit comments

Comments
 (0)