Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rephrase "betterPeersToQuery" method comment to be less cryptic #206

Merged
merged 2 commits into from
Nov 15, 2018

Conversation

mtojek
Copy link
Contributor

@mtojek mtojek commented Nov 15, 2018

No description provided.

dht.go Outdated
@@ -330,7 +330,7 @@ func (dht *IpfsDHT) nearestPeersToQuery(pmes *pb.Message, count int) []peer.ID {
return closer
}

// betterPeerToQuery returns nearestPeersToQuery, but iff closer than self.
// betterPeersToQuery returns nearestPeersToQuery, but if closer than self.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iff is not a typo, it means if and only if; please leave it there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or expand if it seems too cryptic.

@mtojek
Copy link
Contributor Author

mtojek commented Nov 15, 2018

Hi @vyzo ,

I adjusted the PR.

@mtojek mtojek changed the title Fix: typo in betterPeersToQuery Rephrase "betterPeersToQuery" method comment to be less cryptic Nov 15, 2018
@vyzo vyzo merged commit d70e927 into libp2p:master Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants