Hi,

Fixes typos detected in the code comments of the hlua_fcn subsystem using
the misspell tool and other ones detected manually.

The patch is attached, but if you want to view the diff online, you
can check: 
https://github.com/haproxy/haproxy/compare/master...aerostitch:cleanup_hlua_fcn_typos

Thanks
Joseph
From 898ebe67f2f07a57838963fbcadf25607e8d60ec Mon Sep 17 00:00:00 2001
From: Joseph Herlant <aerosti...@debian.org>
Date: Thu, 15 Nov 2018 09:35:04 -0800
Subject: [PATCH] CLEANUP: fix typos in the hlua_fcn subsystem

Fixes typos detected in the code comments of the hlua_fcn subsystem using
the misspell tool and other ones detected manually.
---
 src/hlua_fcn.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/hlua_fcn.c b/src/hlua_fcn.c
index 65857dc3..f977d64a 100644
--- a/src/hlua_fcn.c
+++ b/src/hlua_fcn.c
@@ -84,13 +84,13 @@ static int hlua_fcn_pushunsigned_ll(lua_State *L, unsigned long long val) {
 	return 1;
 }
 
-/* This function gets a struct field and convert it in Lua
- * variable. The variable is pushed at the top of the stak.
+/* This function gets a struct field and converts it in Lua
+ * variable. The variable is pushed at the top of the stack.
  */
 int hlua_fcn_pushfield(lua_State *L, struct field *field)
 {
 	/* The lua_Integer is always signed. Its length depends on
-	 * compilation opions, so the followinfg code is conditionned
+	 * compilation options, so the following code is conditioned
 	 * by some macros. Windows maros are not supported.
 	 * If the number cannot be represented as integer, we try to
 	 * convert to float.
@@ -205,7 +205,7 @@ void hlua_class_function(lua_State *L, const char *name, int (*function)(lua_Sta
 	lua_rawset(L, -3);
 }
 
-/* This function returns a string containg the HAProxy object name. */
+/* This function returns a string containing the HAProxy object name. */
 int hlua_dump_object(struct lua_State *L)
 {
 	const char *name = (const char *)lua_tostring(L, lua_upvalueindex(1));
-- 
2.19.1

Reply via email to