Skip to content

Conversation

@Shayan-To
Copy link
Contributor

Fix defensiveCopy to run immediately, so it is not accessed after method return.

This sample is used in Rule #3 in Usage guidlines section here: https://github.com/dotnet/docs/blob/master/docs/standard/memory-and-spans/memory-t-usage-guidelines.md

Fix defensiveCopy to run immediately, so it is not accessed after method return.
@rpetrusha rpetrusha added the ✨ 1st-time samples contributor! Indicates PRs from new contributors to the samples repository label Apr 25, 2019
@rpetrusha rpetrusha added this to the April 2019 milestone Apr 25, 2019
Copy link

@rpetrusha rpetrusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @Shayan-To, for contributing to the dotnet/samples repo and for making this correction. We'll merge your PR now.

@rpetrusha rpetrusha merged commit 3f51002 into dotnet:master Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ 1st-time samples contributor! Indicates PRs from new contributors to the samples repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants