From bdd91e0d8e5afc1578421fd7a735d1283b5b1c92 Mon Sep 17 00:00:00 2001 From: Parambir Singh Date: Mon, 17 Oct 2016 11:20:56 +1100 Subject: [PATCH] doc: fix typo in zlib.md Change 'methods with throw an error' to 'methods will throw an error'. PR-URL: https://github.com/nodejs/node/pull/9123 Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Teddy Katz Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Brian White --- doc/api/zlib.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/zlib.md b/doc/api/zlib.md index 71d5de1899..1c00292426 100644 --- a/doc/api/zlib.md +++ b/doc/api/zlib.md @@ -113,7 +113,7 @@ http.createServer((request, response) => { }).listen(1337); ``` -By default, the `zlib` methods with throw an error when decompressing +By default, the `zlib` methods will throw an error when decompressing truncated data. However, if it is known that the data is incomplete, or the desire is to inspect only the beginning of a compressed file, it is possible to suppress the default error handling by changing the flushing