2022-07-19 14:19:20

by Jason Wang

[permalink] [raw]
Subject: [PATCH] perf probe: Fix comment typo

The double `the' is duplicated in the comment, remove one.

Signed-off-by: Jason Wang <[email protected]>
---
tools/perf/util/probe-event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
index 062b5cbe67af..67c12d5303e7 100644
--- a/tools/perf/util/probe-event.c
+++ b/tools/perf/util/probe-event.c
@@ -1349,7 +1349,7 @@ int parse_line_range_desc(const char *arg, struct line_range *lr)
/*
* Adjust the number of lines here.
* If the number of lines == 1, the
- * the end of line should be equal to
+ * end of line should be equal to
* the start of line.
*/
lr->end--;
--
2.35.1


2022-07-19 14:59:24

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: Re: [PATCH] perf probe: Fix comment typo

Em Sat, Jul 16, 2022 at 12:39:57PM +0800, Jason Wang escreveu:
> The double `the' is duplicated in the comment, remove one.

Thanks, applied.

- Arnaldo


> Signed-off-by: Jason Wang <[email protected]>
> ---
> tools/perf/util/probe-event.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
> index 062b5cbe67af..67c12d5303e7 100644
> --- a/tools/perf/util/probe-event.c
> +++ b/tools/perf/util/probe-event.c
> @@ -1349,7 +1349,7 @@ int parse_line_range_desc(const char *arg, struct line_range *lr)
> /*
> * Adjust the number of lines here.
> * If the number of lines == 1, the
> - * the end of line should be equal to
> + * end of line should be equal to
> * the start of line.
> */
> lr->end--;
> --
> 2.35.1

--

- Arnaldo