diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-15 06:46:39 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-15 06:46:39 +0400 |
commit | 60e1502b8089f7a0acff7461a3a5c17741e7cec1 (patch) | |
tree | 04d7d27bd6156434ae4b07cd262caa78fa1c0f82 /src/Network/BitTorrent | |
parent | 09950bdee9d5af82b1766c25fad46dfcb6a0e595 (diff) |
Fix typos
Diffstat (limited to 'src/Network/BitTorrent')
-rw-r--r-- | src/Network/BitTorrent/DHT/Routing.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Network/BitTorrent/DHT/Routing.hs b/src/Network/BitTorrent/DHT/Routing.hs index f62c9f56..57085cf4 100644 --- a/src/Network/BitTorrent/DHT/Routing.hs +++ b/src/Network/BitTorrent/DHT/Routing.hs | |||
@@ -199,7 +199,7 @@ defaultBucketSize :: BucketSize | |||
199 | defaultBucketSize = 8 | 199 | defaultBucketSize = 8 |
200 | 200 | ||
201 | -- | Bucket is also limited in its length — thus it's called k-bucket. | 201 | -- | Bucket is also limited in its length — thus it's called k-bucket. |
202 | -- When bucket becomes full we should split it in two lists by | 202 | -- When bucket becomes full, we should split it in two lists by |
203 | -- current span bit. Span bit is defined by depth in the routing | 203 | -- current span bit. Span bit is defined by depth in the routing |
204 | -- table tree. Size of the bucket should be choosen such that it's | 204 | -- table tree. Size of the bucket should be choosen such that it's |
205 | -- very unlikely that all nodes in bucket fail within an hour of | 205 | -- very unlikely that all nodes in bucket fail within an hour of |
@@ -315,9 +315,9 @@ instance Serialize NominalDiffTime where | |||
315 | put = putWord32be . fromIntegral . fromEnum | 315 | put = putWord32be . fromIntegral . fromEnum |
316 | get = (toEnum . fromIntegral) <$> getWord32be | 316 | get = (toEnum . fromIntegral) <$> getWord32be |
317 | 317 | ||
318 | -- | Normally, routing table should we saved between invocations of | 318 | -- | Normally, routing table should be saved between invocations of |
319 | -- the client software. Note that you don't need store /this/ 'NodeId' | 319 | -- the client software. Note that you don't need to store /this/ |
320 | -- since it is included in routing table. | 320 | -- 'NodeId' since it is already included in routing table. |
321 | instance (Eq ip, Serialize ip) => Serialize (Table ip) | 321 | instance (Eq ip, Serialize ip) => Serialize (Table ip) |
322 | 322 | ||
323 | -- | Shape of the table. | 323 | -- | Shape of the table. |