Skip to content

Commit

Permalink
Document char8_t rust::String constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 9, 2025
1 parent 4ff8185 commit 8bcd6b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions book/src/binding/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public:
String(const std::string &);
String(const char *);
String(const char *, size_t);
String(const char8_t *);
String(const char8_t *, size_t);
// Replaces invalid UTF-8 data with the replacement character (U+FFFD).
static String lossy(const std::string &) noexcept;
Expand Down

0 comments on commit 8bcd6b1

Please sign in to comment.