Skip to content

Commit

Permalink
fix: std impl error
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Sep 15, 2024
1 parent 068e0fd commit c7e3aa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/std/src/str.cos
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ template <> struct DisplayTrait<Rune> {
template <> struct DisplayTrait<String> {
static void print(const String &x) { printf("%s", x.internal.c_str()); }
};
template <> struct DisplayTrait<str> {
static void print(const str &x) { printf("%s", std::string(x.internal).c_str()); }
};
template <> struct DisplayTrait<Bytes> {
static void print(const Bytes &x) {
printf("b\"");
Expand Down

0 comments on commit c7e3aa2

Please sign in to comment.