From 4b603539a0568f653b689cea40de435b8cc17f53 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Wed, 5 Jul 2017 22:45:45 +0200 Subject: [PATCH] Update README.md (dart-lang/pool#8) --- pkgs/pool/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/pool/README.md b/pkgs/pool/README.md index 898728867..641e77287 100644 --- a/pkgs/pool/README.md +++ b/pkgs/pool/README.md @@ -13,7 +13,7 @@ final pool = new Pool(10, timeout: new Duration(seconds: 30)); Future readFile(String path) { // Since the call to [File.readAsString] is within [withResource], no more // than ten files will be open at once. - return pool.withResource(() => return new File(path).readAsString()); + return pool.withResource(() => new File(path).readAsString()); } ```