Skip to content

Commit 72ef184

Browse files
authored
Merge pull request #4254 from drvoss/patch-67
Update string-and-character-literals-cpp.md
2 parents 47fc2bb + 0db79f0 commit 72ef184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp/string-and-character-literals-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ The actual result is a hexadecimal 5F, which is the ASCII code for an underscore
391391
"\x05" "five" // Use string splicing.
392392
```
393393

394-
`std::string` literals (and the related `std::u8string`, `std::u16string`, and `ste::u32string`) can be concatenated with the **`+`** operator that's defined for [`basic_string`](../standard-library/basic-string-class.md) types. They can also be concatenated in the same way as adjacent string literals. In both cases, the string encoding and the suffix must match:
394+
`std::string` literals (and the related `std::u8string`, `std::u16string`, and `std::u32string`) can be concatenated with the **`+`** operator that's defined for [`basic_string`](../standard-library/basic-string-class.md) types. They can also be concatenated in the same way as adjacent string literals. In both cases, the string encoding and the suffix must match:
395395

396396
```cpp
397397
auto x1 = "hello" " " " world"; // OK

0 commit comments

Comments
 (0)