aboutsummaryrefslogtreecommitdiffstats
path: root/vsnprintf.c
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2021-01-06 12:20:03 -0500
committerAaron Patterson <aaron.patterson@gmail.com>2021-01-19 12:06:45 -0800
commit9e0075a3d902aa5236bbfdc0ad0d3028a55dc17e (patch)
tree4c0a885269e1b6332027527fbbb9689ba045c256 /vsnprintf.c
parenta8dc5156e183489c5121fb1759bda5d9406d9175 (diff)
downloadruby-9e0075a3d902aa5236bbfdc0ad0d3028a55dc17e.tar.gz
Replace "iff" with "if and only if"
iff means if and only if, but readers without that knowledge might assume this to be a spelling mistake. To me, this seems like exclusionary language that is unnecessary. Simply using "if and only if" instead should suffice.
Diffstat (limited to 'vsnprintf.c')
-rw-r--r--vsnprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vsnprintf.c b/vsnprintf.c
index 3efef20cd8..90c827f6a0 100644
--- a/vsnprintf.c
+++ b/vsnprintf.c
@@ -161,7 +161,7 @@ struct __sbuf {
* _ub, _up, and _ur are used when ungetc() pushes back more characters
* than fit in the current _bf, or when ungetc() pushes back a character
* that does not match the previous one in _bf. When this happens,
- * _ub._base becomes non-nil (i.e., a stream has ungetc() data iff
+ * _ub._base becomes non-nil (i.e., a stream has ungetc() data if and only if
* _ub._base!=NULL) and _up and _ur save the current values of _p and _r.
*
* NB: see WARNING above before changing the layout of this structure!
@@ -196,7 +196,7 @@ typedef struct __sFILE {
#define __SSTR 0x0200 /* this is an sprintf/snprintf string */
#define __SOPT 0x0400 /* do fseek() optimisation */
#define __SNPT 0x0800 /* do not do fseek() optimisation */
-#define __SOFF 0x1000 /* set iff _offset is in fact correct */
+#define __SOFF 0x1000 /* set if and only if _offset is in fact correct */
#define __SMOD 0x2000 /* true => fgetln modified _p text */