threads / patch / 66906

patchlazyload: fix typo in comment

Subject: [PATCH] lazyload: fix typo in comment

## tl;dr

4 messages between Nov 21, 2026 and Nov 22, 2026. Diffs are folded; open one to read it.

replies: 3people: 4as markdown or json

Ophir Bleicher via GitGitGadget· Nov 21, 2026, 15:44 UTC · lore
From: Ophir Bleicher <ophirble@gmail.com>

Fix a typo on line 11 of compat/win32/lazyload.h, inside a comment. That comment shows an example of function usage, without a closing parentheses:

return error("Could not find CreateHardLinkW() function";
There isn't any closing ')'.
Signed-off-by: Ophir Bleicher <ophirble@gmail.com>
---
    lazyload: fix typo in comment
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2497%2FOphirBleicher%2Ffix-typo-lazyload-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2497/OphirBleicher/fix-typo-lazyload-v1
Pull-Request: https://github.com/git/git/pull/2497
 compat/win32/lazyload.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to compat/win32/lazyload.h +1 −1
diff --git a/compat/win32/lazyload.h b/compat/win32/lazyload.h
index f2bb96c89c..d348a89f9b 100644
--- a/compat/win32/lazyload.h
+++ b/compat/win32/lazyload.h
@@ -8,7 +8,7 @@
  *                     LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES);
  *
  *   if (!INIT_PROC_ADDR(CreateHardLinkW))
- *           return error("Could not find CreateHardLinkW() function";
+ *           return error("Could not find CreateHardLinkW() function");
  *
  *   if (!CreateHardLinkW(source, target, NULL))
  *           return error("could not create hardlink from %S to %S",

base-commit: f7de81456940dd6f3274e461149bba12965de609
-- 
gitgitgadget
Johannes Schindelin· Nov 21, 2026, 16:04 UTC · re: Ophir Bleicher via GitGitGadget · lore

Re: [PATCH] lazyload: fix typo in comment

Hi Ophir,
On Sat, 21 Nov 2026, Ophir Bleicher via GitGitGadget wrote:
Show 9 quoted lines
> From: Ophir Bleicher <ophirble@gmail.com>
> 
> Fix a typo on line 11 of compat/win32/lazyload.h, inside a comment.
> That comment shows an example of function usage, without a closing
> parentheses:
> 
> return error("Could not find CreateHardLinkW() function";
> 
> There isn't any closing ')'.
Yes, this was incorrect, and your fix is much appreciated.
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Thank you, Johannes

Show 31 quoted lines
> 
> Signed-off-by: Ophir Bleicher <ophirble@gmail.com>
> ---
>     lazyload: fix typo in comment
> 
> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2497%2FOphirBleicher%2Ffix-typo-lazyload-v1
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2497/OphirBleicher/fix-typo-lazyload-v1
> Pull-Request: https://github.com/git/git/pull/2497
> 
>  compat/win32/lazyload.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/compat/win32/lazyload.h b/compat/win32/lazyload.h
> index f2bb96c89c..d348a89f9b 100644
> --- a/compat/win32/lazyload.h
> +++ b/compat/win32/lazyload.h
> @@ -8,7 +8,7 @@
>   *                     LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES);
>   *
>   *   if (!INIT_PROC_ADDR(CreateHardLinkW))
> - *           return error("Could not find CreateHardLinkW() function";
> + *           return error("Could not find CreateHardLinkW() function");
>   *
>   *   if (!CreateHardLinkW(source, target, NULL))
>   *           return error("could not create hardlink from %S to %S",
> 
> base-commit: f7de81456940dd6f3274e461149bba12965de609
> -- 
> gitgitgadget
> 
> 
Ophir Bleicher· Nov 21, 2026, 16:13 UTC · re: Johannes Schindelin · lore

Re: [PATCH] lazyload: fix typo in comment

Thank you!
Show 54 quoted lines
> On 21 Nov 2026, at 18:04, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> 
> Hi Ophir,
> 
> On Sat, 21 Nov 2026, Ophir Bleicher via GitGitGadget wrote:
> 
>> From: Ophir Bleicher <ophirble@gmail.com>
>> 
>> Fix a typo on line 11 of compat/win32/lazyload.h, inside a comment.
>> That comment shows an example of function usage, without a closing
>> parentheses:
>> 
>> return error("Could not find CreateHardLinkW() function";
>> 
>> There isn't any closing ')'.
> 
> Yes, this was incorrect, and your fix is much appreciated.
> 
> Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> 
> Thank you,
> Johannes
> 
>> 
>> Signed-off-by: Ophir Bleicher <ophirble@gmail.com>
>> ---
>>    lazyload: fix typo in comment
>> 
>> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2497%2FOphirBleicher%2Ffix-typo-lazyload-v1
>> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2497/OphirBleicher/fix-typo-lazyload-v1
>> Pull-Request: https://github.com/git/git/pull/2497
>> 
>> compat/win32/lazyload.h | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/compat/win32/lazyload.h b/compat/win32/lazyload.h
>> index f2bb96c89c..d348a89f9b 100644
>> --- a/compat/win32/lazyload.h
>> +++ b/compat/win32/lazyload.h
>> @@ -8,7 +8,7 @@
>>  *                     LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES);
>>  *
>>  *   if (!INIT_PROC_ADDR(CreateHardLinkW))
>> - *           return error("Could not find CreateHardLinkW() function";
>> + *           return error("Could not find CreateHardLinkW() function");
>>  *
>>  *   if (!CreateHardLinkW(source, target, NULL))
>>  *           return error("could not create hardlink from %S to %S",
>> 
>> base-commit: f7de81456940dd6f3274e461149bba12965de609
>> -- 
>> gitgitgadget
>> 
>> 
Junio C Hamano· Nov 22, 2026, 19:33 UTC · re: Johannes Schindelin · lore

Re: [PATCH] lazyload: fix typo in comment

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 9 quoted lines
>> parentheses:
>> 
>> return error("Could not find CreateHardLinkW() function";
>> 
>> There isn't any closing ')'.
>
> Yes, this was incorrect, and your fix is much appreciated.
>
> Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Looks good.

Will pick-up, and mark the topic as ready for 'next'. Thanks for writing and reviewing, both of you.

← back to recent threads