lib/string.c: fix a typo in comment: 'iff' -->'if'
Subsystems (2)
PATCH 1/1 lib/string.c: fix a typo in comment: 'iff' -->'if'
Signed-off-by YueHaibing <[email protected]>
--- lib/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/string.c +1 -1
@@ -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
Quoted 4 lines · YueHaibing
Signed-off-by YueHaibing <[email protected]>--- 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@@ -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
Quoted 9 lines · Randy Dunlap
Quoted 4 lines · YueHaibing
Signed-off-by YueHaibing <[email protected]>--- 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@@ -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.
From: YueHaibing
Quoted 9 lines
Sent: 29 June 2018 04:45
Quoted 6 lines · Randy Dunlap
Quoted 4 lines · YueHaibing
Signed-off-by YueHaibing <[email protected]>--- 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
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
Signed-off-by YueHaibing <[email protected]>--- 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