Skip to content

Commit 1f16f57

Browse files
authored
Fix greet to match tutorial (#233)
1 parent e5c3f12 commit 1f16f57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

my_sample_lib.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "my_sample_lib.h"
22
#include <fmt/core.h>
33

4-
std::string greet(const std::string& name) {
5-
return fmt::format("Hello, {}!", name);
4+
void greet(const std::string& name) {
5+
fmt::print("Hello, {}!\n", name);
66
}

my_sample_lib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
#if MYLIB_EXPORTS
66
__declspec(dllexport)
77
#endif
8-
std::string greet(const std::string& name);
8+
void greet(const std::string& name);

0 commit comments

Comments
 (0)