Skip to content

Commit 392aec8

Browse files
authored
Merge pull request #49888 from kotpal/patch-1
Fix syntax error in 'using' in the sample code
2 parents ac6e6b2 + 5195cd5 commit 392aec8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/storage/blobs/storage-quickstart-blobs-dotnet.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,11 @@ Console.WriteLine("\nDownloading blob to\n\t{0}\n", downloadFilePath);
233233
// Download the blob's contents and save it to a file
234234
BlobDownloadInfo download = await blobClient.DownloadAsync();
235235

236-
using FileStream downloadFileStream = File.OpenWrite(downloadFilePath);
237-
await download.Content.CopyToAsync(downloadFileStream);
238-
downloadFileStream.Close();
236+
using (FileStream downloadFileStream = File.OpenWrite(downloadFilePath))
237+
{
238+
await download.Content.CopyToAsync(downloadFileStream);
239+
downloadFileStream.Close();
240+
}
239241
```
240242

241243
### Delete a container

0 commit comments

Comments
 (0)