Skip to content

Commit

Permalink
Merge pull request #1439 from dtolnay/char8t
Browse files Browse the repository at this point in the history
Document char8_t rust::String constructors
  • Loading branch information
dtolnay authored Feb 9, 2025
2 parents 4ff8185 + 8bcd6b1 commit a8582e9
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 a8582e9

Please sign in to comment.