[libcamera-devel] [PATCH] libcamera: thread: Fix typo in comment

Laurent Pinchart laurent.pinchart at ideasonboard.com
Wed Apr 7 11:03:48 CEST 2021


Hi Sebastian,

On Wed, Apr 07, 2021 at 11:01:52AM +0200, Sebastian Fricke wrote:
> On 07.04.2021 11:56, Laurent Pinchart wrote:
> > On Wed, Apr 07, 2021 at 07:31:40AM +0200, Sebastian Fricke wrote:
> >> s/This method enter/This method enters/
> >
> > This duplicates the content of the patch itself, but there's really not
> > much else that needs to be said. In my opinion this is a valid case
> > where a commit message could be left empty. It doesn't matter much.
> 
> Thank you for that advice, my intention behind this line is to make clear,
> which part of the text was changed. I found this often useful when the
> commit diff contains a lot of text and the change is very very small
> (like adding a missing letter 's'), because in that case the reviewer
> would have to read the whole line again to find that error.
> Do you think it is beneficial when the reviewer has to spot the error on his own?

For a single line change, I think it's not too hard to spot :-) But
again, it doesn't matter much.

> >> Signed-off-by: Sebastian Fricke <sebastian.fricke at posteo.net>
> >
> > Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> >
> >> ---
> >>  src/libcamera/thread.cpp | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/src/libcamera/thread.cpp b/src/libcamera/thread.cpp
> >> index f339dab1..f14c433f 100644
> >> --- a/src/libcamera/thread.cpp
> >> +++ b/src/libcamera/thread.cpp
> >> @@ -290,7 +290,7 @@ void Thread::startThread()
> >>  /**
> >>   * \brief Enter the event loop
> >>   *
> >> - * This method enter an event loop based on the event dispatcher instance for
> >> + * This method enters an event loop based on the event dispatcher instance for
> >>   * the thread, and blocks until the exit() method is called. It is meant to be
> >>   * called within the thread from the run() method and shall not be called
> >>   * outside of the thread.

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list