Skip to content

Commit 7a22c8e

Browse files
committed
Corrected typos in helloworld.c
1 parent e4e71de commit 7a22c8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/extmod/example/helloworld.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
static const char* HELLOWORLD_METATABLE = NODEMCU_MODULE_METATABLE();
99

10-
// hello_context_t struct contains information to wrap a esp_mqtt client in lua
10+
// hello_context_t struct contains information to wrap a "hello world object"
1111
typedef struct {
12-
char* my_name;
12+
char* my_name; // pointer to the greeter's name
1313
} hello_context_t;
1414

1515
// Lua: helloworldobj:hello(text)
@@ -37,7 +37,7 @@ static int helloworld_new(lua_State* L) {
3737
luaL_getmetatable(L, HELLOWORLD_METATABLE);
3838
lua_setmetatable(L, -2);
3939

40-
return 1; //one object returned, the mqtt context wrapped in a lua userdata object
40+
return 1; //one object returned, the helloworld context wrapped in a lua userdata object
4141
}
4242

4343
// object function map:

0 commit comments

Comments
 (0)