[PATCH] Fix typos (found by codespell)

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix typos (found by codespell)

Stefan Weil
Signed-off-by: Stefan Weil <[hidden email]>
---
src/lcode.c | 2 +-
src/lobject.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lcode.c b/src/lcode.c
index 12619f5..dc7271d 100644
--- a/src/lcode.c
+++ b/src/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/src/lobject.c b/src/lobject.c
index 2218c8c..355bf58 100644
--- a/src/lobject.c
+++ b/src/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.

--
2.20.1


Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix typos (found by codespell)

Roberto Ierusalimschy
> Signed-off-by: Stefan Weil <[hidden email]>
> ---
> src/lcode.c | 2 +-
> src/lobject.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/lcode.c b/src/lcode.c
> index 12619f5..dc7271d 100644
> --- a/src/lcode.c
> +++ b/src/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};
> [...]

What version are you talking about?

-- Roberto

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix typos (found by codespell)

Stefan Weil
Am 27.12.19 um 14:26 schrieb Roberto Ierusalimschy:

>> Signed-off-by: Stefan Weil <[hidden email]>
>> ---
>> src/lcode.c | 2 +-
>> src/lobject.c | 2 +-
>> 2 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/lcode.c b/src/lcode.c
>> index 12619f5..dc7271d 100644
>> --- a/src/lcode.c
>> +++ b/src/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};
>> [...]
> What version are you talking about?
>
> -- Roberto


The patch is for lua-5.3.5, the latest released version which I could
find. Or is there a Git repository (or Subversion, ...) with newer code
somewhere?

You can get the patch also from
https://github.com/stweil/lua/commit/2ec2f52a8569f463f065247f9b7f374a551e99b8.patch.

-- Stefan




Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix typos (found by codespell)

Jonathan Goble

On Fri, Dec 27, 2019 at 8:59 AM Stefan Weil <[hidden email]> wrote:

The patch is for lua-5.3.5, the latest released version which I could
find. Or is there a Git repository (or Subversion, ...) with newer code
somewhere?

There is a GitHub mirror here with the latest code for 5.4 beta: https://github.com/lua/lua

Pull requests are not accepted, though, so coming here is correct.
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix typos (found by codespell)

Stefan Weil

Am 27.12.19 um 15:08 schrieb Jonathan Goble:


On Fri, Dec 27, 2019 at 8:59 AM Stefan Weil <[hidden email]> wrote:

The patch is for lua-5.3.5, the latest released version which I could
find. Or is there a Git repository (or Subversion, ...) with newer code
somewhere?

There is a GitHub mirror here with the latest code for 5.4 beta: https://github.com/lua/lua

Pull requests are not accepted, though, so coming here is correct.


Here is a similar patch for the latest code:

https://github.com/stweil/lua/commit/db6c818ca7659f3d2f9af86b06c6c0b20778c631.patch

-- Stefan


Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix typos (found by codespell)

Roberto Ierusalimschy
> Here is a similar patch for the latest code:
>
> https://github.com/stweil/lua/commit/db6c818ca7659f3d2f9af86b06c6c0b20778c631.patch

Thanks.

-- Roberto