summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-12-27 10:48:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-12-27 10:48:23 -0300
commitd71a548685eb3ac5ea598d6a9e7481389c558808 (patch)
tree9460748c6be7555e91b43622879b80f85258fe37
parentcee1ebe3373d1ed9c87182edef49bd866126cceb (diff)
downloadlua-github-d71a548685eb3ac5ea598d6a9e7481389c558808.tar.gz
Fixed typos in comments
-rw-r--r--lcode.c2
-rw-r--r--lobject.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lcode.c b/lcode.c
index 12619f54..dc7271d6 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1061,7 +1061,7 @@ static void codecomp (FuncState *fs, BinOpr opr, expdesc *e1, expdesc *e2) {
/*
-** Aplly prefix operation 'op' to expression 'e'.
+** Apply prefix operation 'op' to expression 'e'.
*/
void luaK_prefix (FuncState *fs, UnOpr op, expdesc *e, int line) {
static const expdesc ef = {VKINT, {0}, NO_JUMP, NO_JUMP};
diff --git a/lobject.c b/lobject.c
index 2218c8cd..355bf58d 100644
--- a/lobject.c
+++ b/lobject.c
@@ -266,7 +266,7 @@ static const char *l_str2dloc (const char *s, lua_Number *result, int mode) {
** - 'n'/'N' means 'inf' or 'nan' (which should be rejected)
** - '.' just optimizes the search for the common case (nothing special)
** This function accepts both the current locale or a dot as the radix
-** mark. If the convertion fails, it may mean number has a dot but
+** mark. If the conversion fails, it may mean number has a dot but
** locale accepts something else. In that case, the code copies 's'
** to a buffer (because 's' is read-only), changes the dot to the
** current locale radix mark, and tries to convert again.