Skip to content

Commit a68a2d8

Browse files
authored
Merge pull request #106 from maguroguma/patch-1
Update generics.rst
2 parents 4dd80ff + ac8b1e3 commit a68a2d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

generics.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ TypeScriptでは組み込みの型変換のためのジェネリクスのユー
232232
return function(): any {
233233
if (!isInit) {
234234
cache = init();
235+
isInit = true;
235236
}
236237
return cache;
237238
}
@@ -260,6 +261,7 @@ TypeScriptでは組み込みの型変換のためのジェネリクスのユー
260261
return function(): T {
261262
if (!isInit) {
262263
cache = init();
264+
isInit = true;
263265
}
264266
return cache;
265267
}

0 commit comments

Comments
 (0)