Skip to content

Commit 412eb02

Browse files
authored
Merge pull request #404 from rocboronat/master
Fix a typo: weak instead of week
2 parents 54c1b69 + cd28b4b commit 412eb02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/get_it.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ abstract class GetIt {
231231
String? instanceName,
232232
});
233233

234-
/// Like registerFactory but holds a week reference to the last created instance
234+
/// Like registerFactory but holds a weak reference to the last created instance
235235
/// if the instance wasn't garbage collected yet it will return this instance instead of creating a new one
236236
void registerCachedFactory<T extends Object>(
237237
FactoryFunc<T> factoryFunc, {
@@ -262,7 +262,7 @@ abstract class GetIt {
262262
String? instanceName,
263263
});
264264

265-
/// Like registerFactoryParam but holds a week reference to the last created instance
265+
/// Like registerFactoryParam but holds a weak reference to the last created instance
266266
/// if the instance wasn't garbage collected yet, and if the passed parameter haven't changed,
267267
/// it will return this instance instead of creating a new one
268268
void registerCachedFactoryParam<T extends Object, P1, P2>(
@@ -282,7 +282,7 @@ abstract class GetIt {
282282
String? instanceName,
283283
});
284284

285-
/// Like registerFactoryAsync but holds a week reference to the last created instance
285+
/// Like registerFactoryAsync but holds a weak reference to the last created instance
286286
/// if the instance wasn't garbage collected yet it will return this instance instead of creating a new one
287287
void registerCachedFactoryAsync<T extends Object>(
288288
FactoryFunc<T> factoryFunc, {
@@ -314,7 +314,7 @@ abstract class GetIt {
314314
String? instanceName,
315315
});
316316

317-
/// Like registerFactoryParamAsync but holds a week reference to the last created instance
317+
/// Like registerFactoryParamAsync but holds a weak reference to the last created instance
318318
/// if the instance wasn't garbage collected yet, and if the passed parameter haven't changed,
319319
/// it will return this instance instead of creating a new one
320320
void registerCachedFactoryParamAsync<T extends Object, P1, P2>(

0 commit comments

Comments
 (0)