Skip to contentSkip to conversation

lib: fix trivial typo in the comment

PATCH In review Andy Shevchenko 3 participants 5 messages Apr 22, 2013 – Apr 24, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index e5878de..e551284 100644
@@ -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
#1 lore raw
Quoted 12 lines · Andy Shevchenko

This fixes "iff" as "if".

---
 lib/string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/string.c +0 -0
index e5878de..e551284 100644

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
#2 lore raw
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

#3 lore raw
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
#4 lore raw
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