summaryrefslogtreecommitdiffstats
path: root/url/url_canon_host.cc
diff options
context:
space:
mode:
authorqyearsley <qyearsley@chromium.org>2015-08-14 13:17:15 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-14 20:17:42 +0000
commit2bc727de36df5826011630b13e1ae86f349f1486 (patch)
tree9bbc2727a3b579a4c0454d249dafd118b07a523f /url/url_canon_host.cc
parent1c92d5b76e02a23ca199ad912be42976335d1691 (diff)
downloadchromium_src-2bc727de36df5826011630b13e1ae86f349f1486.zip
chromium_src-2bc727de36df5826011630b13e1ae86f349f1486.tar.gz
chromium_src-2bc727de36df5826011630b13e1ae86f349f1486.tar.bz2
Proof-read comments in src/url/.
Review URL: https://codereview.chromium.org/1270443006 Cr-Commit-Position: refs/heads/master@{#343473}
Diffstat (limited to 'url/url_canon_host.cc')
-rw-r--r--url/url_canon_host.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/url/url_canon_host.cc b/url/url_canon_host.cc
index 513248a..fce4d3a 100644
--- a/url/url_canon_host.cc
+++ b/url/url_canon_host.cc
@@ -34,7 +34,7 @@ namespace {
// NOTE: I didn't actually test all the control characters. Some may be
// disallowed in the input, but they are all accepted escaped except for 0.
// I also didn't test if characters affecting HTML parsing are allowed
-// unescaped, eg. (") or (#), which would indicate the beginning of the path.
+// unescaped, e.g. (") or (#), which would indicate the beginning of the path.
// Surprisingly, space is accepted in the input and always escaped.
// This table lists the canonical version of all characters we allow in the
@@ -316,11 +316,11 @@ void DoHost(const CHAR* spec,
}
if (!success) {
- // Canonicalization failed. Set BROKEN to notify the caller.
+ // Canonicalization failed. Set BROKEN to notify the caller.
host_info->family = CanonHostInfo::BROKEN;
} else {
// After all the other canonicalization, check if we ended up with an IP
- // address. IP addresses are small, so writing into this temporary buffer
+ // address. IP addresses are small, so writing into this temporary buffer
// should not cause an allocation.
RawCanonOutput<64> canon_ip;
CanonicalizeIPAddress(output->data(),
@@ -328,7 +328,7 @@ void DoHost(const CHAR* spec,
&canon_ip, host_info);
// If we got an IPv4/IPv6 address, copy the canonical form back to the
- // real buffer. Otherwise, it's a hostname or broken IP, in which case
+ // real buffer. Otherwise, it's a hostname or broken IP, in which case
// we just leave it in place.
if (host_info->IsIPAddress()) {
output->set_length(output_begin);