Skip to content

Commit

Permalink
Fix small issues
Browse files Browse the repository at this point in the history
  • Loading branch information
eNeRGy164 committed Aug 13, 2024
1 parent 6156af3 commit d3e8e18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libraries/Microsoft.Bcl.Memory/src/PACKAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ byte[] data = Encoding.UTF8.GetBytes("Hello World!");
Span<byte> encoded = new byte[Base64Url.GetEncodedLength(data.Length)];
Base64Url.EncodeToUtf8(data, encoded, out int _, out int bytesWritten);

string encodedString = Encoding.UTF8.GetString(encoded[..bytesWritten]);
string encodedString = Base64Url.EncodeToString(data);
Console.WriteLine($"Encoded: {encodedString}");
// Encoded: SGVsbG8gV29ybGQh
Expand Down Expand Up @@ -72,8 +72,8 @@ The main types provided by this library are:
API documentation

* [System.Index](https://learn.microsoft.com/dotnet/api/system.index)
* [System.Range](https://learn.microsoft.com/en-us/dotnet/api/system.range)
* [System.Buffers.Text](https://learn.microsoft.com/dotnet/api/system.buffers.text)
* [System.Range](https://learn.microsoft.com/dotnet/api/system.range)
* [System.Buffers.Text.Base64Url](https://learn.microsoft.com/dotnet/api/system.buffers.text.base64url)

## Feedback & Contributing

Expand Down

0 comments on commit d3e8e18

Please sign in to comment.