Skip to content

Commit

Permalink
Adjust ZStringWriter for Cysharp/Zstring v2.4.3 (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Dec 7, 2021
1 parent 9ace2d7 commit 31a57ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/SmartFormat.ZString/ZStringWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public override void Write(char[] buffer, int index, int count)
}
AssertNotDisposed();

sb.Append(buffer.AsSpan(index, count));
sb.Append(buffer, index, count);
}

public override void Write(string value)
Expand Down Expand Up @@ -161,7 +161,6 @@ public override string ToString()
return sb.ToString();
}

#if !UNITY_2018_3_OR_NEWER

public
#if !NETSTANDARD2_0 && !NETFRAMEWORK
Expand Down Expand Up @@ -215,7 +214,6 @@ Task WriteLineAsync(ReadOnlyMemory<char> buffer, CancellationToken cancellationT
WriteLine(buffer.Span);
return Task.CompletedTask;
}
#endif

private void AssertNotDisposed()
{
Expand Down

0 comments on commit 31a57ec

Please sign in to comment.