From eb982513008d8cceb43c21ab616d4ba98731bfc0 Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Wed, 30 Aug 2023 09:55:33 +0800 Subject: [PATCH] docs: perfect title --- docs/es6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/es6.md b/docs/es6.md index 1229e84..c9acdf8 100644 --- a/docs/es6.md +++ b/docs/es6.md @@ -44,7 +44,7 @@ async function fn(): Promise { } ``` -## `Iterable<>` +## `Iterable` 对象只要部署了 Iterator 接口,就可以用`for...of`循环遍历。Generator 函数(生成器)返回的就是一个具有 Iterator 接口的对象。