2013-04-22 10:36:44

by Andy Shevchenko

[permalink] [raw]
Subject: [PATCH] lib: fix trivial typo in the comment

This fixes "iff" as "if".

Signed-off-by: Andy Shevchenko <[email protected]>
---
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


2013-04-24 14:38:39

by Jiri Kosina

[permalink] [raw]
Subject: Re: [PATCH] lib: fix trivial typo in the comment

On Mon, 22 Apr 2013, Andy Shevchenko wrote:

> This fixes "iff" as "if".
>
> Signed-off-by: Andy Shevchenko <[email protected]>
> ---
> 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

2013-04-24 16:15:50

by Andy Shevchenko

[permalink] [raw]
Subject: Re: [PATCH] lib: fix trivial typo in the comment

On Wed, Apr 24, 2013 at 5:38 PM, Jiri Kosina <[email protected]> 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

2013-04-24 16:24:09

by Jiri Kosina

[permalink] [raw]
Subject: Re: [PATCH] lib: fix trivial typo in the comment

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

2013-04-24 16:26:04

by Andy Shevchenko

[permalink] [raw]
Subject: Re: [PATCH] lib: fix trivial typo in the comment

On Wed, Apr 24, 2013 at 7:24 PM, Jiri Kosina <[email protected]> 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