Skip to contentSkip to conversation

lib/string.c: fix a typo in comment: 'iff' -->'if'

PATCH In review YueHaibing 4 participants 5 messages Jun 29, 2018

Subsystems (2)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 lib/string.c: fix a typo in comment: 'iff' -->'if'

---
 lib/string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/string.c +1 -1
index 2c0900a..23ed944 100644
@@ -609,7 +609,7 @@ EXPORT_SYMBOL(strsep);
  * @s1: one string
  * @s2: another string
  *
- * This routine returns true iff two strings are equal, treating both
+ * This routine returns true if two strings are equal, treating both
  * NUL and newline-then-NUL as equivalent string terminations.  It's
  * geared for use with sysfs input strings, which generally terminate
  * with newlines but are compared against values without newlines.
Signature · 1 line
2.7.0
#1 lore raw
Quoted 4 lines · YueHaibing
---
 lib/string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Hi,

This isn't a typo. "iff" means "if and only if".

Quoted 14 lines
lib/string.c +1 -1
index 2c0900a..23ed944 100644
@@ -609,7 +609,7 @@ EXPORT_SYMBOL(strsep);
  * @s1: one string
  * @s2: another string
  *
- * This routine returns true iff two strings are equal, treating both
+ * This routine returns true if two strings are equal, treating both
  * NUL and newline-then-NUL as equivalent string terminations.  It's
  * geared for use with sysfs input strings, which generally terminate
  * with newlines but are compared against values without newlines.
Signature · 1 line
~Randy
author
#2 lore raw
Quoted 9 lines · Randy Dunlap
Quoted 4 lines · YueHaibing
---
 lib/string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Hi,

This isn't a typo. "iff" means "if and only if".

ok, my poor english, thank you.

Quoted 17 lines
Quoted 15 lines
lib/string.c +1 -1
index 2c0900a..23ed944 100644
@@ -609,7 +609,7 @@ EXPORT_SYMBOL(strsep);
  * @s1: one string
  * @s2: another string
  *
- * This routine returns true iff two strings are equal, treating both
+ * This routine returns true if two strings are equal, treating both
  * NUL and newline-then-NUL as equivalent string terminations.  It's
  * geared for use with sysfs input strings, which generally terminate
  * with newlines but are compared against values without newlines.
#3 lore raw

From: YueHaibing

Quoted 9 lines

Sent: 29 June 2018 04:45

Quoted 6 lines · Randy Dunlap
Quoted 4 lines · YueHaibing
---
 lib/string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines
Quoted 3 lines

Hi,

This isn't a typo. "iff" means "if and only if".

ok, my poor english, thank you.

It's not really english, but a shorthand used by mathematicians.

David

#4 lore raw
Quoted 10 lines · David Laight

From: YueHaibing

Quoted 9 lines

Sent: 29 June 2018 04:45

Quoted 6 lines · Randy Dunlap
Quoted 4 lines · YueHaibing
---
 lib/string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Hi,

This isn't a typo. "iff" means "if and only if".

ok, my poor english, thank you.

It's not really english, but a shorthand used by mathematicians.

I remember I did a very same mistake (and sent a patch!).

Perhaps better to fully spell it to avoid "once per 3 years" activity?

Signature · 2 lines
With Best Regards,
Andy Shevchenko