Skip to content

Commit

Permalink
fix: fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
sssooonnnggg committed Dec 18, 2024
1 parent ab34961 commit d3e174f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debugger/src/internal/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
namespace luau::debugger::log {
using Logger = std::function<void(std::string_view)>;
inline Logger& info() {
static Logger logger = [](std::string_vieww) { printf("%s", msg.data()); };
static Logger logger = [](std::string_view msg) { printf("%s", msg.data()); };
return logger;
}

inline Logger& error() {
static Logger logger = [](std::string_view) {
static Logger logger = [](std::string_view msg) {
fprintf(stderr, "%s", msg.data());
};
return logger;
Expand Down

0 comments on commit d3e174f

Please sign in to comment.