Remove comment-based syntax for generic methods (#59)
diff --git a/lib/http.dart b/lib/http.dart
index 9ccd77a..86bcefb 100644
--- a/lib/http.dart
+++ b/lib/http.dart
@@ -161,7 +161,7 @@
Future<Uint8List> readBytes(url, {Map<String, String> headers}) =>
_withClient((client) => client.readBytes(url, headers: headers));
-Future/*<T>*/ _withClient/*<T>*/(Future/*<T>*/ fn(Client client)) async {
+Future<T> _withClient<T>(Future<T> fn(Client client)) async {
var client = new Client();
try {
return await fn(client);
diff --git a/lib/src/io_client.dart b/lib/src/io_client.dart
index 03950ad..8a7fe6d 100644
--- a/lib/src/io_client.dart
+++ b/lib/src/io_client.dart
@@ -48,7 +48,7 @@
});
return new StreamedResponse(
- DelegatingStream.typed/*<List<int>>*/(response).handleError((error) =>
+ DelegatingStream.typed<List<int>>(response).handleError((error) =>
throw new ClientException(error.message, error.uri),
test: (error) => error is HttpException),
response.statusCode,
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index 86a6690..789c2d9 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -86,7 +86,7 @@
/// Calls [onDone] once [stream] (a single-subscription [Stream]) is finished.
/// The return value, also a single-subscription [Stream] should be used in
/// place of [stream] after calling this method.
-Stream/*<T>*/ onDone/*<T>*/(Stream/*<T>*/ stream, void onDone()) =>
+Stream<T> onDone<T>(Stream<T> stream, void onDone()) =>
stream.transform(new StreamTransformer.fromHandlers(handleDone: (sink) {
sink.close();
onDone();