Skip to content

Commit 66cd5d9

Browse files
zichanggcommit-bot@chromium.org
authored andcommitted
[dart:io] Update inaccurate comments of writeByteSync
Closes: #42298 Change-Id: Ide2a5318c185530368ae3ebded3c3c0fb86e8338 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151162 Reviewed-by: Jonas Termansen <[email protected]> Commit-Queue: Zichang Guo <[email protected]>
1 parent 85f6c01 commit 66cd5d9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

sdk/lib/io/file.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,8 +726,7 @@ abstract class RandomAccessFile {
726726
Future<RandomAccessFile> writeByte(int value);
727727

728728
/**
729-
* Synchronously writes a single byte to the file. Returns the
730-
* number of bytes successfully written.
729+
* Synchronously writes a single byte to the file. Returns 1 on success.
731730
*
732731
* Throws a [FileSystemException] if the operation fails.
733732
*/

sdk_nnbd/lib/io/file.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,7 @@ abstract class RandomAccessFile {
724724
Future<RandomAccessFile> writeByte(int value);
725725

726726
/**
727-
* Synchronously writes a single byte to the file. Returns the
728-
* number of bytes successfully written.
727+
* Synchronously writes a single byte to the file. Returns 1 on success.
729728
*
730729
* Throws a [FileSystemException] if the operation fails.
731730
*/

0 commit comments

Comments
 (0)