Closes https://github.com/dart-lang/sdk/pull/55065

GitOrigin-RevId: ac11d63f223361219d5907b106f9672b4fa44b52
Change-Id: I7f8d816491707c86743adca04ef410cd9b60c8cf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355200
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
This commit is contained in:
maBarabas 2024-03-02 03:48:55 +00:00 committed by Commit Queue
parent 1527033358
commit 42ccd79cd1

View file

@ -615,7 +615,7 @@ abstract interface class File implements FileSystemEntity {
/// This method does not transform newline characters (`"\n"`) to the
/// platform conventional line ending (e.g. `"\r\n"` on Windows). Use
/// [Platform.lineTerminator] to separate lines in [contents] if platform
/// contentional line endings are needed.
/// conventional line endings are needed.
Future<File> writeAsString(String contents,
{FileMode mode = FileMode.write,
Encoding encoding = utf8,
@ -637,7 +637,7 @@ abstract interface class File implements FileSystemEntity {
/// This method does not transform newline characters (`"\n"`) to the
/// platform conventional line ending (e.g. `"\r\n"` on Windows). Use
/// [Platform.lineTerminator] to separate lines in [contents] if platform
/// contentional line endings are needed.
/// conventional line endings are needed.
///
/// Throws a [FileSystemException] if the operation fails.
void writeAsStringSync(String contents,