We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2968e89 commit caf476cCopy full SHA for caf476c
docs/atl-mfc-shared/reference/csimplestringt-class.md
@@ -515,11 +515,7 @@ LPTSTR pstr = str.GetBufferSetLength(3);
515
pstr[0] = _T('C');
516
pstr[1] = _T('u');
517
pstr[2] = _T('p');
518
-
519
-// No need for trailing zero or call to ReleaseBuffer()
520
-// because GetBufferSetLength() set it for us.
521
-// If we had called GetBuffer() instead of GetBufferSetLength()
522
-// then we would have needed to call ReleaseBuffer().
+str.ReleaseBuffer();
523
524
str += _T(" soccer is best!");
525
ASSERT(_tcscmp(str, _T("Cup soccer is best!")) == 0);
0 commit comments