Skip to contentSkip to conversation

staging: tools: string.c doc fix

PATCH In review Daniel Bovensiepen 3 participants 3 messages Apr 14, 2020 – Apr 15, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: tools: string.c doc fix

Fix spelling error in the comment.

---
 tools/lib/string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/string.c +1 -1
index f645343815de..f73a1020fad9 100644
@@ -41,7 +41,7 @@ void *memdup(const void *src, size_t len)
  * @s: input string
  * @res: result
  *
- * This routine returns 0 iff the first character is one of 'Yy1Nn0', or
+ * This routine returns 0 if the first character is one of 'Yy1Nn0', or
  * [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL.  Value
  * pointed to by res is updated upon finding a match.
  */
Signature · 1 line
2.17.1
#1 lore raw
Quoted 1 line · Daniel Bovensiepen

Fix spelling error in the comment.

Nope, that's math-speak for "if and only if."

Quoted 19 lines
---
 tools/lib/string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/string.c +1 -1
index f645343815de..f73a1020fad9 100644
@@ -41,7 +41,7 @@ void *memdup(const void *src, size_t len)
  * @s: input string
  * @res: result
  *
- * This routine returns 0 iff the first character is one of 'Yy1Nn0', or
+ * This routine returns 0 if the first character is one of 'Yy1Nn0', or
  * [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL.  Value
  * pointed to by res is updated upon finding a match.
  */
Signature · 1 line
~Randy