about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/net_url.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs
index c32e0466bba..af454227471 100644
--- a/src/libstd/net_url.rs
+++ b/src/libstd/net_url.rs
@@ -14,7 +14,7 @@ export encode, decode;
 export encode_component, decode_component;
 export encode_form_urlencoded, decode_form_urlencoded;
 
-type Url = {
+struct Url {
     scheme: ~str,
     user: Option<UserInfo>,
     host: ~str,
@@ -22,7 +22,7 @@ type Url = {
     path: ~str,
     query: Query,
     fragment: Option<~str>
-};
+}
 
 type UserInfo = {
     user: ~str,
@@ -34,7 +34,7 @@ type Query = ~[(~str, ~str)];
 fn url(-scheme: ~str, -user: Option<UserInfo>, -host: ~str,
        -port: Option<~str>, -path: ~str, -query: Query,
        -fragment: Option<~str>) -> Url {
-    { scheme: scheme, user: user, host: host, port: port,
+    Url { scheme: scheme, user: user, host: host, port: port,
      path: path, query: query, fragment: fragment }
 }