Skip to content

Commit 1b6873e

Browse files
committed
Fix writing offset
1 parent fbb5674 commit 1b6873e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Tools/LeanCode.CodeAnalysis/NetStandard21Compatibility/MissingFileMethods.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static async Task WriteAllTextAsync(
3636
if (contents is not null)
3737
{
3838
var encoded = Encoding.Default.GetBytes(contents);
39-
await stream.WriteAsync(encoded, preamble.Length, encoded.Length, cancellationToken);
39+
await stream.WriteAsync(encoded, 0, encoded.Length, cancellationToken);
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)