Skip to content

Commit e0cef9b

Browse files
committed
Docs changes
1 parent 530d1cb commit e0cef9b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/temp-file.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,10 @@ Assert.Equal(data, readData);
350350
<!-- snippet: TempFileCreateBinaryWithExtension -->
351351
<a id='snippet-TempFileCreateBinaryWithExtension'></a>
352352
```cs
353-
using var temp = await TempFile.CreateBinary(byteArray, ".png");
354-
355-
// Process the temporary image file
353+
byte[] data = [0x01, 0x02, 0x03, 0x04];
354+
using var temp = await TempFile.CreateBinary(data, ".bin");
356355
```
357-
<sup><a href='/src/Verify.Tests/TempFileTests.cs#L729-L735' title='Snippet source file'>snippet source</a> | <a href='#snippet-TempFileCreateBinaryWithExtension' title='Start of snippet'>anchor</a></sup>
356+
<sup><a href='/src/Verify.Tests/TempFileTests.cs#L727-L732' title='Snippet source file'>snippet source</a> | <a href='#snippet-TempFileCreateBinaryWithExtension' title='Start of snippet'>anchor</a></sup>
358357
<!-- endSnippet -->
359358

360359

0 commit comments

Comments
 (0)