Skip to content

Commit

Permalink
Adding in a missed algorithm step number in the comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldfaria committed May 21, 2015
1 parent 7ae5d11 commit d4be936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/websocket.rs
Expand Up @@ -84,7 +84,7 @@ fn parse_web_socket_url(url_str: &str) -> Fallible<(Url, String, u16, String, bo
};

let host = parsed_url.host().unwrap().serialize(); // Step 6
let port = parsed_url.port_or_default().unwrap(); // Step 7
let port = parsed_url.port_or_default().unwrap(); // Steps 7 and 8
let mut resource = parsed_url.path().unwrap().connect("/"); // Step 9
if resource.is_empty() {
resource = "/".to_owned(); // Step 10
Expand Down

0 comments on commit d4be936

Please sign in to comment.