1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-15 19:04:45 +00:00

copyediting: correct a couple of code comments.

This commit is contained in:
Jordan Lee 2012-12-28 08:35:14 +00:00
parent 600c383c1e
commit 7ff9e2d2ba

View file

@ -3896,7 +3896,7 @@ checkPartition (const struct peer_candidate * candidates, int left, int right, u
}
#endif
/* Helper to selectBestCandidates ().
/* Helper to selectPeerCandidates().
* Adapted from http://en.wikipedia.org/wiki/Selection_algorithm */
static int
partitionPeerCandidates (struct peer_candidate * candidates, int left, int right, int pivotIndex)
@ -3934,7 +3934,8 @@ partitionPeerCandidates (struct peer_candidate * candidates, int left, int right
return storeIndex;
}
/* Adapted from http://en.wikipedia.org/wiki/Selection_algorithm */
/* Partial sorting -- selecting the k best candidates
Adapted from http://en.wikipedia.org/wiki/Selection_algorithm */
static void
selectPeerCandidates (struct peer_candidate * candidates, int left, int right, int k)
{