From af18b314730fbcb387be62d2bbf757b5cdda5f96 Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Tue, 22 Jun 2021 13:56:28 +0100 Subject: [PATCH] docs(dotnet): fixed broken code snippets which contained Java (#7260) --- docs/src/cheat-sheet.md | 2 +- docs/src/input.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/cheat-sheet.md b/docs/src/cheat-sheet.md index 1d2705d626..6468ebae32 100644 --- a/docs/src/cheat-sheet.md +++ b/docs/src/cheat-sheet.md @@ -126,7 +126,7 @@ await page.SetInputFilesAsync("input#upload", new FilePayload { Name = "file.txt", MimeType = "text/plain", - Buffer = "this is a test".getBytes(StandardCharsets.UTF_8), + Buffer = System.Text.Encoding.UTF8.GetBytes("this is a test"), }); ``` diff --git a/docs/src/input.md b/docs/src/input.md index 0688951593..4edff73b49 100644 --- a/docs/src/input.md +++ b/docs/src/input.md @@ -713,7 +713,7 @@ await page.SetInputFilesAsync("input#upload", new FilePayload { Name = "file.txt", MimeType = "text/plain", - Buffer = "this is a test".getBytes(StandardCharsets.UTF_8), + Buffer = System.Text.Encoding.UTF8.GetBytes("this is a test"), }); ```