lib: fix trivial typo in the comment
Subsystems (2)
PATCH 1/1 lib: fix trivial typo in the comment
This fixes "iff" as "if".
--- lib/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/string.c +1 -1
@@ -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. */
Signature · 1 line
1.8.2.rc0.22.gb3600c3
Quoted 12 lines · Andy Shevchenko
This fixes "iff" as "if".
Signed-off-by Andy Shevchenko <[email protected]>--- lib/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/string.c +0
-0
lib/string.c EXPORT_SYMBOL(sysfs_streq); · line 548
Quoted 8 lines
lib/string.c +1
-1@@ -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 ... ?
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 7 lines · Jiri Kosina
Quoted 5 lines
- * 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
Quoted 9 lines · Andy Shevchenko
Quoted 7 lines
Quoted 5 lines
- * 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,
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 8 lines · Jiri Kosina
Quoted 6 lines · Andy Shevchenko
Quoted 6 lines
Quoted 5 lines
- * 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.
*/
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
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