mbox series

[0/2] remove unnecessary words in function documention

Message ID 20220622202738.401690-1-stephen@networkplumber.org (mailing list archive)
Headers
Series remove unnecessary words in function documention |

Message

Stephen Hemminger June 22, 2022, 8:27 p.m. UTC
  The phrase "This API is used to" is unnecessary and changes the
documentation into passive voice.

Stephen Hemminger (2):
  rawdev, dmadev: remove passive voice in function doc
  eal: remove passive voice from interrupt function documentation

 drivers/raw/ioat/rte_ioat_rawdev.h |  2 +-
 lib/dmadev/rte_dmadev.h            |  2 +-
 lib/eal/include/rte_interrupts.h   | 23 +++++++++++------------
 3 files changed, 13 insertions(+), 14 deletions(-)
  

Comments

Tyler Retzlaff June 22, 2022, 8:37 p.m. UTC | #1
On Wed, Jun 22, 2022 at 01:27:36PM -0700, Stephen Hemminger wrote:
> The phrase "This API is used to" is unnecessary and changes the
> documentation into passive voice.
> 
> Stephen Hemminger (2):
>   rawdev, dmadev: remove passive voice in function doc
>   eal: remove passive voice from interrupt function documentation
> 
>  drivers/raw/ioat/rte_ioat_rawdev.h |  2 +-
>  lib/dmadev/rte_dmadev.h            |  2 +-
>  lib/eal/include/rte_interrupts.h   | 23 +++++++++++------------
>  3 files changed, 13 insertions(+), 14 deletions(-)
> 
> -- 

the re-wording has shortened some of the lines, i'm not sure what
takes precedence (minimum diff vs line length convention).

whatever is decided lgtm

Series-acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
  
Stephen Hemminger June 22, 2022, 8:54 p.m. UTC | #2
On Wed, 22 Jun 2022 13:37:12 -0700
Tyler Retzlaff <roretzla@linux.microsoft.com> wrote:

> On Wed, Jun 22, 2022 at 01:27:36PM -0700, Stephen Hemminger wrote:
> > The phrase "This API is used to" is unnecessary and changes the
> > documentation into passive voice.
> > 
> > Stephen Hemminger (2):
> >   rawdev, dmadev: remove passive voice in function doc
> >   eal: remove passive voice from interrupt function documentation
> > 
> >  drivers/raw/ioat/rte_ioat_rawdev.h |  2 +-
> >  lib/dmadev/rte_dmadev.h            |  2 +-
> >  lib/eal/include/rte_interrupts.h   | 23 +++++++++++------------
> >  3 files changed, 13 insertions(+), 14 deletions(-)
> > 
> > --   
> 
> the re-wording has shortened some of the lines, i'm not sure what
> takes precedence (minimum diff vs line length convention).
> 

Doxygen repacks line during documentation generation
  
Tyler Retzlaff June 23, 2022, 4:57 a.m. UTC | #3
On Wed, Jun 22, 2022 at 01:54:46PM -0700, Stephen Hemminger wrote:
> On Wed, 22 Jun 2022 13:37:12 -0700
> Tyler Retzlaff <roretzla@linux.microsoft.com> wrote:
> 
> > On Wed, Jun 22, 2022 at 01:27:36PM -0700, Stephen Hemminger wrote:
> > > The phrase "This API is used to" is unnecessary and changes the
> > > documentation into passive voice.
> > > 
> > > Stephen Hemminger (2):
> > >   rawdev, dmadev: remove passive voice in function doc
> > >   eal: remove passive voice from interrupt function documentation
> > > 
> > >  drivers/raw/ioat/rte_ioat_rawdev.h |  2 +-
> > >  lib/dmadev/rte_dmadev.h            |  2 +-
> > >  lib/eal/include/rte_interrupts.h   | 23 +++++++++++------------
> > >  3 files changed, 13 insertions(+), 14 deletions(-)
> > > 
> > > --   
> > 
> > the re-wording has shortened some of the lines, i'm not sure what
> > takes precedence (minimum diff vs line length convention).
> > 
> 
> Doxygen repacks line during documentation generation

no worries either way, myself i don't read doxygen i read the
code/comments directly.
  
David Marchand June 24, 2022, 12:06 p.m. UTC | #4
On Wed, Jun 22, 2022 at 10:27 PM Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> The phrase "This API is used to" is unnecessary and changes the
> documentation into passive voice.
>
> Stephen Hemminger (2):
>   rawdev, dmadev: remove passive voice in function doc
>   eal: remove passive voice from interrupt function documentation
>
>  drivers/raw/ioat/rte_ioat_rawdev.h |  2 +-
>  lib/dmadev/rte_dmadev.h            |  2 +-
>  lib/eal/include/rte_interrupts.h   | 23 +++++++++++------------
>  3 files changed, 13 insertions(+), 14 deletions(-)

Applied, thanks.