Skip to content

Commit e828832

Browse files
committed
---
yaml --- r: 28279 b: refs/heads/try c: d55917e h: refs/heads/master i: 28277: a063d69 28275: 07d066b 28271: 59d9743 v: v3
1 parent b856e8a commit e828832

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: 225cdc4894638ea36b44dec8605fc357db191e64
5+
refs/heads/try: d55917ea598e761c49a1e5bb9134f372a7461062
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/src/libstd/net_url.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use from_str::FromStr;
88
use result::{Err, Ok};
99
use to_str::ToStr;
1010

11-
export Url, url, userinfo, query;
11+
export Url, Query;
1212
export from_str, to_str;
1313
export get_scheme;
1414
export query_to_str;
@@ -34,14 +34,14 @@ type UserInfo = {
3434

3535
type Query = ~[(~str, ~str)];
3636

37-
fn url(-scheme: ~str, -user: Option<UserInfo>, -host: ~str,
37+
fn Url(-scheme: ~str, -user: Option<UserInfo>, -host: ~str,
3838
-port: Option<~str>, -path: ~str, -query: Query,
3939
-fragment: Option<~str>) -> Url {
4040
Url { scheme: scheme, user: user, host: host, port: port,
4141
path: path, query: query, fragment: fragment }
4242
}
4343

44-
fn userinfo(-user: ~str, -pass: Option<~str>) -> UserInfo {
44+
fn UserInfo(-user: ~str, -pass: Option<~str>) -> UserInfo {
4545
{user: user, pass: pass}
4646
}
4747

@@ -300,7 +300,7 @@ fn userinfo_from_str(uinfo: ~str) -> UserInfo {
300300
} else {
301301
option::Some(p)
302302
};
303-
return userinfo(user, pass);
303+
return UserInfo(user, pass);
304304
}
305305

306306
fn userinfo_to_str(-userinfo: UserInfo) -> ~str {
@@ -648,7 +648,7 @@ fn from_str(rawurl: &str) -> result::Result<Url, ~str> {
648648
}
649649
let (query, fragment) = result::unwrap(qry);
650650

651-
return result::Ok(url(scheme, userinfo, host,
651+
return result::Ok(Url(scheme, userinfo, host,
652652
port, path, query, fragment));
653653
}
654654

0 commit comments

Comments
 (0)