* [PATCH] lib: fix trivial typo in the comment
@ 2013-04-22 10:36 Andy Shevchenko
2013-04-24 14:38 ` Jiri Kosina
0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2013-04-22 10:36 UTC (permalink / raw)
To: Jiri Kosina, linux-kernel; +Cc: Andy Shevchenko
This fixes "iff" as "if".
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
lib/string.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/string.c b/lib/string.c
index e5878de..e551284 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -542,7 +542,7 @@ EXPORT_SYMBOL(sysfs_streq);
* @s: input string
* @res: result
*
- * This routine returns 0 iff the first character is one of 'Yy1Nn0'.
+ * This routine returns 0 if the first character is one of 'Yy1Nn0'.
* Otherwise it will return -EINVAL. Value pointed to by res is
* updated upon finding a match.
*/
--
1.8.2.rc0.22.gb3600c3
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] lib: fix trivial typo in the comment
2013-04-22 10:36 [PATCH] lib: fix trivial typo in the comment Andy Shevchenko
@ 2013-04-24 14:38 ` Jiri Kosina
2013-04-24 16:15 ` Andy Shevchenko
0 siblings, 1 reply; 5+ messages in thread
From: Jiri Kosina @ 2013-04-24 14:38 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: linux-kernel
On Mon, 22 Apr 2013, Andy Shevchenko wrote:
> This fixes "iff" as "if".
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> lib/string.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/string.c b/lib/string.c
> index e5878de..e551284 100644
> --- a/lib/string.c
> +++ b/lib/string.c
> @@ -542,7 +542,7 @@ EXPORT_SYMBOL(sysfs_streq);
> * @s: input string
> * @res: result
> *
> - * This routine returns 0 iff the first character is one of 'Yy1Nn0'.
> + * This routine returns 0 if the first character is one of 'Yy1Nn0'.
> * Otherwise it will return -EINVAL. Value pointed to by res is
> * updated upon finding a match.
> */
And this is correct because ... ?
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] lib: fix trivial typo in the comment
2013-04-24 14:38 ` Jiri Kosina
@ 2013-04-24 16:15 ` Andy Shevchenko
2013-04-24 16:24 ` Jiri Kosina
0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2013-04-24 16:15 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Andy Shevchenko, linux-kernel
On Wed, Apr 24, 2013 at 5:38 PM, Jiri Kosina <jkosina@suse.cz> wrote:
>> - * This routine returns 0 iff the first character is one of 'Yy1Nn0'.
>> + * This routine returns 0 if the first character is one of 'Yy1Nn0'.
>> * Otherwise it will return -EINVAL. Value pointed to by res is
>> * updated upon finding a match.
>> */
>
> And this is correct because ... ?
So, in this case it means "if and only if", true?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] lib: fix trivial typo in the comment
2013-04-24 16:15 ` Andy Shevchenko
@ 2013-04-24 16:24 ` Jiri Kosina
2013-04-24 16:26 ` Andy Shevchenko
0 siblings, 1 reply; 5+ messages in thread
From: Jiri Kosina @ 2013-04-24 16:24 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Andy Shevchenko, linux-kernel
On Wed, 24 Apr 2013, Andy Shevchenko wrote:
> >> - * This routine returns 0 iff the first character is one of 'Yy1Nn0'.
> >> + * This routine returns 0 if the first character is one of 'Yy1Nn0'.
> >> * Otherwise it will return -EINVAL. Value pointed to by res is
> >> * updated upon finding a match.
> >> */
> >
> > And this is correct because ... ?
>
> So, in this case it means "if and only if", true?
Yes, and that's in accordance with what the function does, isn't it?
Thanks,
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] lib: fix trivial typo in the comment
2013-04-24 16:24 ` Jiri Kosina
@ 2013-04-24 16:26 ` Andy Shevchenko
0 siblings, 0 replies; 5+ messages in thread
From: Andy Shevchenko @ 2013-04-24 16:26 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Andy Shevchenko, linux-kernel
On Wed, Apr 24, 2013 at 7:24 PM, Jiri Kosina <jkosina@suse.cz> wrote:
> On Wed, 24 Apr 2013, Andy Shevchenko wrote:
>
>> >> - * This routine returns 0 iff the first character is one of 'Yy1Nn0'.
>> >> + * This routine returns 0 if the first character is one of 'Yy1Nn0'.
>> >> * Otherwise it will return -EINVAL. Value pointed to by res is
>> >> * updated upon finding a match.
>> >> */
>> >
>> > And this is correct because ... ?
>>
>> So, in this case it means "if and only if", true?
>
> Yes, and that's in accordance with what the function does, isn't it?
Apparently, yes.
Please, discard the patch. It's quite good to learn something new,
though the term is confusing for me as ESL speaker.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-04-24 16:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-22 10:36 [PATCH] lib: fix trivial typo in the comment Andy Shevchenko
2013-04-24 14:38 ` Jiri Kosina
2013-04-24 16:15 ` Andy Shevchenko
2013-04-24 16:24 ` Jiri Kosina
2013-04-24 16:26 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®