Index: sdk/lib/io/http.dart |
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart |
index 853b8581dc7a540144728dd33e5e04999117a9ce..87cabc3083be9fbbd050d7dc6da2ec18295bfb64 100644 |
--- a/sdk/lib/io/http.dart |
+++ b/sdk/lib/io/http.dart |
@@ -806,7 +806,7 @@ abstract class HttpResponse implements IOSink { |
* provided which provides access to the headers and body of the response. |
* |
* HttpClient client = new HttpClient(); |
- * client.getUrl(new Uri.fromString("http://www.example.com/")) |
+ * client.getUrl(Uri.parse("http://www.example.com/")) |
* .then((HttpClientRequest request) { |
* // Prepare the request then call close on it to send it. |
* return request.close(); |