Skip to content

Commit 78c9271

Browse files
authored
Fix typo in compute documentation: "captures" -> "capture" (#106624)
1 parent 02ad971 commit 78c9271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter/lib/src/foundation/isolates.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ typedef ComputeImpl = Future<R> Function<Q, R>(ComputeCallback<Q, R> callback, Q
7878
///
7979
/// Using closures must be done with care. Due to
8080
/// [dart-lang/sdk#36983](https://github.com/dart-lang/sdk/issues/36983) a
81-
/// closure may captures objects that, while not directly used in the closure
81+
/// closure may capture objects that, while not directly used in the closure
8282
/// itself, may prevent it from being sent to an isolate.
8383
/// {@endtemplate}
8484
///

0 commit comments

Comments
 (0)