aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/str.rs
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2015-10-13 11:48:51 -0700
committerEli Friedman <eli.friedman@gmail.com>2015-10-13 11:48:51 -0700
commitfa606bf1c87ef9f95555391c9243a3cc1383d9ce (patch)
tree33406261a2e1f8855802591d179c89caa796d17d /components/util/str.rs
parent8cb3c5f6287146f8a5c351b72fb135de5b283b33 (diff)
downloadservo-fa606bf1c87ef9f95555391c9243a3cc1383d9ce.tar.gz
servo-fa606bf1c87ef9f95555391c9243a3cc1383d9ce.zip
Link to the HTML multipage spec, not the single-page one.
Diffstat (limited to 'components/util/str.rs')
-rw-r--r--components/util/str.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/util/str.rs b/components/util/str.rs
index 35f7ff4efcf..78bc8824707 100644
--- a/components/util/str.rs
+++ b/components/util/str.rs
@@ -75,8 +75,8 @@ fn read_numbers<I: Iterator<Item=char>>(mut iter: Peekable<I>) -> Option<i64> {
/// Shared implementation to parse an integer according to
-/// <https://html.spec.whatwg.org/#rules-for-parsing-integers> or
-/// <https://html.spec.whatwg.org/#rules-for-parsing-non-negative-integers>
+/// <https://html.spec.whatwg.org/multipage/#rules-for-parsing-integers> or
+/// <https://html.spec.whatwg.org/multipage/#rules-for-parsing-non-negative-integers>
fn do_parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i64> {
let mut input = input.skip_while(|c| {
HTML_SPACE_CHARACTERS.iter().any(|s| s == c)
@@ -101,7 +101,7 @@ fn do_parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i64> {
}
/// Parse an integer according to
-/// <https://html.spec.whatwg.org/#rules-for-parsing-integers>.
+/// <https://html.spec.whatwg.org/multipage/#rules-for-parsing-integers>.
pub fn parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i32> {
do_parse_integer(input).and_then(|result| {
result.to_i32()
@@ -109,7 +109,7 @@ pub fn parse_integer<T: Iterator<Item=char>>(input: T) -> Option<i32> {
}
/// Parse an integer according to
-/// <https://html.spec.whatwg.org/#rules-for-parsing-non-negative-integers>
+/// <https://html.spec.whatwg.org/multipage/#rules-for-parsing-non-negative-integers>
pub fn parse_unsigned_integer<T: Iterator<Item=char>>(input: T) -> Option<u32> {
do_parse_integer(input).and_then(|result| {
result.to_u32()