Skip to content

Commit

Permalink
Fix greet to match tutorial (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
roysc authored Jan 23, 2024
1 parent e5c3f12 commit 1f16f57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions my_sample_lib.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "my_sample_lib.h"
#include <fmt/core.h>

std::string greet(const std::string& name) {
return fmt::format("Hello, {}!", name);
void greet(const std::string& name) {
fmt::print("Hello, {}!\n", name);
}
2 changes: 1 addition & 1 deletion my_sample_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#if MYLIB_EXPORTS
__declspec(dllexport)
#endif
std::string greet(const std::string& name);
void greet(const std::string& name);

0 comments on commit 1f16f57

Please sign in to comment.