Skip to content

Commit 85624a1

Browse files
authored
Fix literals and compare syntax in basic_string class reference
1 parent ba3cf7a commit 85624a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/standard-library/basic-string-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The headers that define `basic_string` also define the following [user-defined l
117117
| Declaration | Description |
118118
|--|--|
119119
| `inline string operator"" s(const char* str, size_t len)` | Returns: `string(str, len)` |
120-
| `inline string operator"" s(const wchar_t* str, size_t len)` | Returns: `wstring(str, len)` |
120+
| `inline wstring operator"" s(const wchar_t* str, size_t len)` | Returns: `wstring(str, len)` |
121121
| `inline basic_string<char8_t> operator"" s(const char8_t* str, size_t len)` | Returns: `basic_string<char8_t>(str, len)` |
122122
| `inline u16string operator"" s(const char16_t* str, size_t len)` | Returns: `u16string(str, len)` |
123123
| `inline u32string operator"" s(const char32_t* str, size_t len)` | Returns: `u32string(str, len)` |
@@ -1046,7 +1046,7 @@ int compare(
10461046
int compare(
10471047
size_type position_1,
10481048
size_type number_1,
1049-
const value_type* ptr
1049+
const value_type* ptr,
10501050
size_type number_2) const;
10511051
```
10521052

0 commit comments

Comments
 (0)