Skip to content

Commit 89e5778

Browse files
authored
文档错误修正
**slib.gzipSync(str)** => zlib.gzipSync(str)
1 parent 69c37b3 commit 89e5778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

模块/zlib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ server.listen('3000');
8181

8282
## 服务端字符串gzip压缩
8383

84-
代码跟前面例子大同小异。这里采用了**slib.gzipSync(str)**对字符串进行gzip压缩。
84+
代码跟前面例子大同小异。这里采用了 **zlib.gzipSync(str)** 对字符串进行gzip压缩。
8585

8686
```javascript
8787
var http = require('http');
@@ -107,4 +107,4 @@ server.listen('3000');
107107

108108
## 写在后面
109109

110-
deflate压缩的使用也差不多,这里就不赘述。更多详细用法可参考[官方文档](https://nodejs.org/api/zlib.html#zlib_class_options)
110+
deflate压缩的使用也差不多,这里就不赘述。更多详细用法可参考[官方文档](https://nodejs.org/api/zlib.html#zlib_class_options)

0 commit comments

Comments
 (0)