From 8ee071f5357cf4617a9a41120ddcc43d24e7d52e Mon Sep 17 00:00:00 2001 From: Sigmund Cherem Date: Mon, 10 Jan 2022 20:48:55 +0000 Subject: [PATCH] Fix dartdoc for WeakReference. Because `dart:core` doesn't import `dart:async`, `Zone.current` cannot be resolved by dartdoc. This introduced failures in dartdoc generation in the bots. This change temporarily removes the reference to make the bots green again. Change-Id: Ibef0a07db9a35b92776ffa1eb5a895bd4587e016 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227280 Reviewed-by: Alexander Aprelev Commit-Queue: Sigmund Cherem --- sdk/lib/core/weak.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/lib/core/weak.dart b/sdk/lib/core/weak.dart index 46721015169..17f5d31aa2b 100644 --- a/sdk/lib/core/weak.dart +++ b/sdk/lib/core/weak.dart @@ -167,7 +167,7 @@ abstract class WeakReference { abstract class Finalizer { /// Creates a finalizer with the given finalization callback. /// - /// The [callback] is bound to the [current zone](Zone.current) + /// The [callback] is bound to the current zone /// when the [Finalizer] is created, and will run in that zone when called. external factory Finalizer(void Function(T) callback);