Skip to content

Commit 0b1d4c7

Browse files
committed
Merging changes synced from https://github.com/MicrosoftDocs/cpp-docs-pr (branch live)
2 parents d965b02 + f663021 commit 0b1d4c7

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)