* [PATCH] staging: tools: string.c doc fix
@ 2020-04-14 18:54 Daniel Bovensiepen
2020-04-14 19:45 ` Randy Dunlap
2020-04-15 7:29 ` Greg Kroah-Hartman
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Bovensiepen @ 2020-04-14 18:54 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-kernel
Fix spelling error in the comment.
Signed-off-by: Daniel Bovensiepen <daniel@bovensiepen.net>
---
tools/lib/string.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/string.c b/tools/lib/string.c
index f645343815de..f73a1020fad9 100644
--- a/tools/lib/string.c
+++ b/tools/lib/string.c
@@ -41,7 +41,7 @@ void *memdup(const void *src, size_t len)
* @s: input string
* @res: result
*
- * This routine returns 0 iff the first character is one of 'Yy1Nn0', or
+ * This routine returns 0 if the first character is one of 'Yy1Nn0', or
* [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value
* pointed to by res is updated upon finding a match.
*/
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: tools: string.c doc fix
2020-04-14 18:54 [PATCH] staging: tools: string.c doc fix Daniel Bovensiepen
@ 2020-04-14 19:45 ` Randy Dunlap
2020-04-15 7:29 ` Greg Kroah-Hartman
1 sibling, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2020-04-14 19:45 UTC (permalink / raw)
To: Daniel Bovensiepen, Greg Kroah-Hartman; +Cc: linux-kernel
On 4/14/20 11:54 AM, Daniel Bovensiepen wrote:
> Fix spelling error in the comment.
Nope, that's math-speak for "if and only if."
> Signed-off-by: Daniel Bovensiepen <daniel@bovensiepen.net>
> ---
> tools/lib/string.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/lib/string.c b/tools/lib/string.c
> index f645343815de..f73a1020fad9 100644
> --- a/tools/lib/string.c
> +++ b/tools/lib/string.c
> @@ -41,7 +41,7 @@ void *memdup(const void *src, size_t len)
> * @s: input string
> * @res: result
> *
> - * This routine returns 0 iff the first character is one of 'Yy1Nn0', or
> + * This routine returns 0 if the first character is one of 'Yy1Nn0', or
> * [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value
> * pointed to by res is updated upon finding a match.
> */
>
--
~Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: tools: string.c doc fix
2020-04-14 18:54 [PATCH] staging: tools: string.c doc fix Daniel Bovensiepen
2020-04-14 19:45 ` Randy Dunlap
@ 2020-04-15 7:29 ` Greg Kroah-Hartman
1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2020-04-15 7:29 UTC (permalink / raw)
To: Daniel Bovensiepen; +Cc: linux-kernel
On Tue, Apr 14, 2020 at 08:54:30PM +0200, Daniel Bovensiepen wrote:
> Fix spelling error in the comment.
>
> Signed-off-by: Daniel Bovensiepen <daniel@bovensiepen.net>
> ---
> tools/lib/string.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Your subject does not match the patch (hint, this is not a
drivers/staging patch...)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-15 7:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 18:54 [PATCH] staging: tools: string.c doc fix Daniel Bovensiepen
2020-04-14 19:45 ` Randy Dunlap
2020-04-15 7:29 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).