Index: sdk/lib/io/http.dart |
diff --git a/sdk/lib/io/http.dart b/sdk/lib/io/http.dart |
index 406af673cef2fe8576bfdd13fe0aa3dfb9b1e0bf..cfdcc10e68b80c72639f9e7a9cb6f8e3fe826408 100644 |
--- a/sdk/lib/io/http.dart |
+++ b/sdk/lib/io/http.dart |
@@ -100,7 +100,7 @@ abstract class HttpStatus { |
* import 'dart:io'; |
* import "dart:isolate"; |
* |
- * main() async { |
+ * main() { |
* SecurityContext context = new SecurityContext(); |
* var chain = |
* Platform.script.resolve('certificates/server_chain.pem') |
@@ -108,8 +108,8 @@ abstract class HttpStatus { |
* var key = |
* Platform.script.resolve('certificates/server_key.pem') |
* .toFilePath(); |
- * await context.useCertificateChain(chain); |
- * await context.usePrivateKey(key, password: 'dartdart'); |
+ * context.useCertificateChainSync(chain); |
+ * context.usePrivateKeySync(key, password: 'dartdart'); |
* |
* HttpServer |
* .bindSecure(InternetAddress.ANY_IP_V6, |