From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5937C433EF for ; Mon, 25 Jul 2022 23:18:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236414AbiGYXSh convert rfc822-to-8bit (ORCPT ); Mon, 25 Jul 2022 19:18:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229801AbiGYXSf (ORCPT ); Mon, 25 Jul 2022 19:18:35 -0400 X-Greylist: delayed 330 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 25 Jul 2022 16:18:34 PDT Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 629BA2613E; Mon, 25 Jul 2022 16:18:34 -0700 (PDT) Received: from omf17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id C2E71C071E; Mon, 25 Jul 2022 23:13:00 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf17.hostedemail.com (Postfix) with ESMTPA id 697EA1E; Mon, 25 Jul 2022 23:12:52 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2] docs: Fix typo in comment From: Joe Perches To: William Breathitt Gray Cc: Baoquan He , Randy Dunlap , Jonathan Corbet , Slark Xiao , kafai , vgoyal , dyoung , ast , daniel , andrii , "martin.lau" , song , yhs , "john.fastabend" , kpsingh , sdf , haoluo , jolsa , dhowells , peterz , mingo , will , longman , "boqun.feng" , tglx , bigeasy , kexec , linux-doc , linux-kernel , bpf , linux-cachefs Date: Mon, 25 Jul 2022 16:12:51 -0700 In-Reply-To: References: <20220721015605.20651-1-slark_xiao@163.com> <20220721154110.fqp7n6f7ij22vayp@kafai-mbp.dhcp.thefacebook.com> <21cac0ea.18f.182218041f7.Coremail.slark_xiao@163.com> <874jzamhxe.fsf@meer.lwn.net> <6ca59494-cc64-d85c-98e8-e9bef2a04c15@infradead.org> <5bd85a7241e6ccac7fe5647cb9cf7ef22b228943.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 X-Stat-Signature: scxpfj6ognbxy16i47zhaoc7nn8mhr7p X-Rspamd-Server: rspamout04 X-Rspamd-Queue-Id: 697EA1E X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX18oibnQ1mEZciO6tvJNDDYSZCjv6uxPeLM= X-HE-Tag: 1658790772-439912 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2022-07-25 at 09:57 -0400, William Breathitt Gray wrote: > On Mon, Jul 25, 2022 at 06:52:15AM -0700, Joe Perches wrote: > > On Fri, 2022-07-22 at 07:45 +0800, Baoquan He wrote: > > > The fix is done with below command: > > > sed -i "s/the the /the /g" `git grep -l "the the " Documentation` > > > > This command misses entries at EOL: > > > > Documentation/trace/histogram.rst: Here's an example where we use a compound key composed of the the > > > > Perhaps a better conversion would be 's/\bthe the\b/the/g' > > It would be good to check for instances that cross newlines as well; > i.e. "the" at the end of a line followed by "the" at the start of the > next line. However, this would require some thought to properly account > for comment blocks ("*") and other similar prefixes that should be > ignored. checkpatch already attempts that duplicated word across a newline test.