From 1fcd088fd9648bcbab9789d8f00ce3208647a683 Mon Sep 17 00:00:00 2001 From: Parambir Singh Date: Mon, 17 Oct 2016 11:20:56 +1100 Subject: 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(-) (limited to 'doc/api/zlib.md') diff --git a/doc/api/zlib.md b/doc/api/zlib.md index 1022dc2f5b..d12f782aa3 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 -- cgit v1.2.3