From 7ff9e2d2bab0c2c22c80ac7076c2ed0478b51489 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Fri, 28 Dec 2012 08:35:14 +0000 Subject: [PATCH] copyediting: correct a couple of code comments. --- libtransmission/peer-mgr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index af0ceeee8..883ae19ce 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -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) {