[1/2] support/timespec.h: Correct confusing comment
diff mbox series

Message ID 20190516122026.14205-1-mac@mcrowe.com
State New
Headers show
Series
  • [1/2] support/timespec.h: Correct confusing comment
Related show

Commit Message

Mike Crowe May 16, 2019, 12:20 p.m. UTC
I seem to have badly copied and pasted the comment describing
TEST_TIMESPEC_EQUAL_OR_AFTER in such a way that it made no sense at all.

* support/timespec.h: Correct confusing comment.
---
 ChangeLog          | 4 ++++
 support/timespec.h | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

Comments

Adhemerval Zanella May 20, 2019, 6:42 p.m. UTC | #1
On 16/05/2019 09:20, Mike Crowe wrote:
> I seem to have badly copied and pasted the comment describing
> TEST_TIMESPEC_EQUAL_OR_AFTER in such a way that it made no sense at all.
> 
> * support/timespec.h: Correct confusing comment.

LTGM, I pushed for you.

> ---
>  ChangeLog          | 4 ++++
>  support/timespec.h | 4 ++--
>  2 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/ChangeLog b/ChangeLog
> index ea7b3d4f48..f870deca1a 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,7 @@
> +2019-05-16  Mike Crowe  <mac@mcrowe.com>
> +
> +	* support/timespec.h: Correct confusing comment.
> +
>  2019-05-15  Mark Wielaard  <mark@klomp.org>
>  
>  	[BZ# 24476]
> diff --git a/support/timespec.h b/support/timespec.h
> index 4a8b341c5a..e9f466b3d1 100644
> --- a/support/timespec.h
> +++ b/support/timespec.h
> @@ -62,8 +62,8 @@ void test_timespec_equal_or_after_impl (const char *file, int line,
>      errno = saved_errno;                                        \
>    })
>  
> -/* Check that the timespec on the left represents a after before the
> -   time on the right. */
> +/* Check that the timespec on the left represents a time equal to or
> +   after the time on the right. */
>  #define TEST_TIMESPEC_EQUAL_OR_AFTER(left, right)                       \
>    test_timespec_equal_or_after_impl (__FILE__, __LINE__, left, right)
>  
>

Patch
diff mbox series

diff --git a/ChangeLog b/ChangeLog
index ea7b3d4f48..f870deca1a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@ 
+2019-05-16  Mike Crowe  <mac@mcrowe.com>
+
+	* support/timespec.h: Correct confusing comment.
+
 2019-05-15  Mark Wielaard  <mark@klomp.org>
 
 	[BZ# 24476]
diff --git a/support/timespec.h b/support/timespec.h
index 4a8b341c5a..e9f466b3d1 100644
--- a/support/timespec.h
+++ b/support/timespec.h
@@ -62,8 +62,8 @@  void test_timespec_equal_or_after_impl (const char *file, int line,
     errno = saved_errno;                                        \
   })
 
-/* Check that the timespec on the left represents a after before the
-   time on the right. */
+/* Check that the timespec on the left represents a time equal to or
+   after the time on the right. */
 #define TEST_TIMESPEC_EQUAL_OR_AFTER(left, right)                       \
   test_timespec_equal_or_after_impl (__FILE__, __LINE__, left, right)