Skip to content

Commit 0226a98

Browse files
authored
Merge pull request #806 from aianlinb/patch-1
Correct incorrect description in ObsoleteAttribute
2 parents b398890 + fd00adc commit 0226a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommunityToolkit.HighPerformance/Extensions/StreamExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public static int Read(this Stream stream, Span<byte> buffer)
169169
/// <param name="stream">The destination <see cref="Stream"/> to write data to.</param>
170170
/// <param name="buffer">The source <see cref="Span{T}"/> to read data from.</param>
171171
#if NETSTANDARD2_1_OR_GREATER
172-
[Obsolete("This API is only available for binary compatibility, but Stream.Read should be used instead.")]
172+
[Obsolete("This API is only available for binary compatibility, but Stream.Write should be used instead.")]
173173
[EditorBrowsable(EditorBrowsableState.Never)]
174174
#endif
175175
public static void Write(this Stream stream, ReadOnlySpan<byte> buffer)

0 commit comments

Comments
 (0)