Skip to content

Commit d891199

Browse files
authored
fix: LuaIterator to LuaIterable
1 parent 8908434 commit d891199

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/advanced/compiler-annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Denotes a type is a Lua iterator. When an object of a type with this annotation
218218
/** @luaIterator */
219219
type LuaIterable<T> = Iterable<T>;
220220

221-
declare function myIterator(): LuaIterator<string>;
221+
declare function myIterator(): LuaIterable<string>;
222222
for (const s of myIterator()) {}
223223
```
224224

0 commit comments

Comments
 (0)