More consistently use parent in zone.fork doc

The doc refers to the `this` as "this", "parent", "current zone", and
"forking zone". Fix a typo "current's zone" -> "parent zone's".

Change-Id: I6d61ad5c69c2cc415ce7271831c7a364715b0652
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/274280
Reviewed-by: Lasse Nielsen <lrn@google.com>
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
This commit is contained in:
Nate Bosch 2022-12-12 18:13:53 +00:00 committed by Commit Queue
parent 2fbb93fc11
commit c58297b756

View file

@ -676,7 +676,7 @@ abstract class Zone {
/// Creates a new zone as a child zone of this zone.
///
/// The new zone uses the closures in the given [specification] to override
/// the current's zone behavior. All specification entries that are `null`
/// the parent zone's behavior. All specification entries that are `null`
/// inherit the behavior from the parent zone (`this`).
///
/// The new zone inherits the stored values (accessed through [operator []])
@ -684,7 +684,7 @@ abstract class Zone {
/// adds new values or overrides existing ones.
///
/// Note that the fork operation is interceptable. A zone can thus change
/// the zone specification (or zone values), giving the forking zone full
/// the zone specification (or zone values), giving the parent zone full
/// control over the child zone.
Zone fork(
{ZoneSpecification? specification, Map<Object?, Object?>? zoneValues});