Skip to content

Commit

Permalink
Remove unnecessary unsafe keyword (#58606)
Browse files Browse the repository at this point in the history
A small cleanup after #56713.
  • Loading branch information
MaximLipnin authored Sep 3, 2021
1 parent 566b3eb commit d57196e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/System.Console/src/System/ConsolePal.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public NSLogStream(Encoding encoding) : base(FileAccess.Write)

public override int Read(Span<byte> buffer) => throw Error.GetReadNotSupported();

public override unsafe void Write(ReadOnlySpan<byte> buffer)
public override void Write(ReadOnlySpan<byte> buffer)
{
int maxCharCount = _encoding.GetMaxCharCount(buffer.Length);
char[]? pooledBuffer = null;
Expand Down

0 comments on commit d57196e

Please sign in to comment.