Skip to content

Commit 4fa0c28

Browse files
committed
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.
1 parent 7e30ea3 commit 4fa0c28

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/logger.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,35 +302,35 @@ def datetime_format
302302
alias sev_threshold level
303303
alias sev_threshold= level=
304304

305-
# Returns +true+ iff the current severity level allows for the printing of
305+
# Returns +true+ if and only if the current severity level allows for the printing of
306306
# +DEBUG+ messages.
307307
def debug?; level <= DEBUG; end
308308

309309
# Sets the severity to DEBUG.
310310
def debug!; self.level = DEBUG; end
311311

312-
# Returns +true+ iff the current severity level allows for the printing of
312+
# Returns +true+ if and only if the current severity level allows for the printing of
313313
# +INFO+ messages.
314314
def info?; level <= INFO; end
315315

316316
# Sets the severity to INFO.
317317
def info!; self.level = INFO; end
318318

319-
# Returns +true+ iff the current severity level allows for the printing of
319+
# Returns +true+ if and only if the current severity level allows for the printing of
320320
# +WARN+ messages.
321321
def warn?; level <= WARN; end
322322

323323
# Sets the severity to WARN.
324324
def warn!; self.level = WARN; end
325325

326-
# Returns +true+ iff the current severity level allows for the printing of
326+
# Returns +true+ if and only if the current severity level allows for the printing of
327327
# +ERROR+ messages.
328328
def error?; level <= ERROR; end
329329

330330
# Sets the severity to ERROR.
331331
def error!; self.level = ERROR; end
332332

333-
# Returns +true+ iff the current severity level allows for the printing of
333+
# Returns +true+ if and only if the current severity level allows for the printing of
334334
# +FATAL+ messages.
335335
def fatal?; level <= FATAL; end
336336

0 commit comments

Comments
 (0)