Skip to content

Commit 915c1ed

Browse files
nateboschCommit Queue
authored andcommitted
Change some "function" to "method" in IOSink docs
Closes #31722 [email protected] Change-Id: Ice7ed1c1ffcc8468f8e61274fa3c4fa880cc04f6 CoreLibraryReviewExempt: Doc changes only. Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/310763 Commit-Queue: Nate Bosch <[email protected]> Reviewed-by: Lasse Nielsen <[email protected]>
1 parent 2b1c0f5 commit 915c1ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/lib/io/io_sink.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract interface class IOSink implements StreamSink<List<int>>, StringSink {
3434
/// The [encoding] does not apply to this method, and the [data] list is passed
3535
/// directly to the target consumer as a stream event.
3636
///
37-
/// This function must not be called when a stream is currently being added
37+
/// This method must not be called when a stream is currently being added
3838
/// using [addStream].
3939
///
4040
/// This operation is non-blocking. See [flush] or [done] for how to get any
@@ -78,7 +78,7 @@ abstract interface class IOSink implements StreamSink<List<int>>, StringSink {
7878

7979
/// Passes the error to the target consumer as an error event.
8080
///
81-
/// This function must not be called when a stream is currently being added
81+
/// This method must not be called when a stream is currently being added
8282
/// using [addStream].
8383
///
8484
/// This operation is non-blocking. See [flush] or [done] for how to get any
@@ -93,8 +93,8 @@ abstract interface class IOSink implements StreamSink<List<int>>, StringSink {
9393
/// If the stream contains an error, the `addStream` ends at the error,
9494
/// and the returned future completes with that error.
9595
///
96-
/// This function must not be called when a stream is currently being added
97-
/// using this function.
96+
/// This method must not be called when a stream is currently being added
97+
/// using this method.
9898
Future addStream(Stream<List<int>> stream);
9999

100100
/// Returns a [Future] that completes once all buffered data is accepted by the

0 commit comments

Comments
 (0)