Skip to content

Commit 971082d

Browse files
committed
Add rust::String utf-16 constructors to website
1 parent 9230abf commit 971082d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

book/src/binding/string.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public:
2323
String(const char *);
2424
String(const char *, size_t);
2525
26+
// Throws std::invalid_argument if not utf-16.
27+
String(const char16_t *);
28+
String(const char16_t *, size_t);
29+
2630
String &operator=(const String &) noexcept;
2731
String &operator=(String &&) noexcept;
2832

0 commit comments

Comments
 (0)