Duplicat-word typos in code comments

From: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Duplicat-word typos in code comments
Date: 2021-10-04 12:56:23
Message-ID: 87bl45t0co.fsf@wibble.ilmari.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

I noticed a duplicate-word typo in a comments recently, and cooked up
the following ripgrep command to find some more.

rg --multiline --pcre2 --type=c '(?<!struct )(?<!union )\b((?!long\b|endif\b|that\b)\w+)\s+(^\s*[*#]\s*)?\b\1\b'

PFA a patch with the result of that.

- ilmari

Attachment Content-Type Size
0001-Fix-some-duplicate-words-in-comments.patch text/x-diff 5.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2021-10-04 13:01:11 Re: 2021-09 Commitfest
Previous Message Magnus Hagander 2021-10-04 12:56:21 Re: 2021-09 Commitfest