Index: packages/pool/README.md |
diff --git a/packages/pool/README.md b/packages/pool/README.md |
index 898728867ecdf306cf82e2ad985458c880ca614f..641e772871758e910a4869bed57e0be88636cd3f 100644 |
--- a/packages/pool/README.md |
+++ b/packages/pool/README.md |
@@ -13,7 +13,7 @@ final pool = new Pool(10, timeout: new Duration(seconds: 30)); |
Future<String> 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()); |
} |
``` |