Skip to content

Commit 9579fa7

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#3330 from MicrosoftDocs/master637656837598986745
Repo sync for protected CLA branch
2 parents d965b02 + 0b1d4c7 commit 9579fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dotnet/how-to-convert-standard-string-to-system-string.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int main() {
2727
Console::WriteLine(str2);
2828

2929
// alternatively
30-
String^ str3 = gcnew String(str.c_str());
30+
String^ str3 = gcnew String(str.data());
3131
Console::WriteLine(str3);
3232
}
3333
```

0 commit comments

Comments
 (0)