From nobody@FreeBSD.org  Thu Dec 27 05:09:56 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id D10A137B417
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 27 Dec 2001 05:09:55 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id fBRD9tT22279;
	Thu, 27 Dec 2001 05:09:55 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200112271309.fBRD9tT22279@freefall.freebsd.org>
Date: Thu, 27 Dec 2001 05:09:55 -0800 (PST)
From: Eric Yu <ericyu@mail2000.com.tw>
To: freebsd-gnats-submit@FreeBSD.org
Subject: misspelling in primes.c
X-Send-Pr-Version: www-1.0

>Number:         33242
>Category:       misc
>Synopsis:       misspelling in primes.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    roam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 27 05:10:00 PST 2001
>Closed-Date:    Fri Dec 28 01:09:54 PST 2001
>Last-Modified:  Fri Dec 28 01:10:29 PST 2001
>Originator:     Eric Yu
>Release:        4.4-RELEASE
>Organization:
none
>Environment:
>Description:
On src/games/primes/primes.c, line 85, "if and onl if".

>How-To-Repeat:
In the file.

>Fix:
- * sieve, table[i] == 1 if and only iff 2*i-1 is prime.
+ * sieve, table[i] == 1 if and only if 2*i-1 is prime.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: roam 
State-Changed-When: Thu Dec 27 05:33:42 PST 2001 
State-Changed-Why:  
Committed to -current, will merge into 4.x-stable after 
the release engineers' permission. 
Thanks for pointing the typo out! 


Responsible-Changed-From-To: freebsd-bugs->roam 
Responsible-Changed-By: roam 
Responsible-Changed-When: Thu Dec 27 05:33:42 PST 2001 
Responsible-Changed-Why:  
I will hadle the MFC after RE's permission. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33242 

From: Andy Isaacson <adi@hexapodia.org>
To: Eric Yu <ericyu@mail2000.com.tw>, roam@FreeBSD.org
Cc: freebsd-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject: Re: misc/33242: misspelling in primes.c
Date: Thu, 27 Dec 2001 09:55:00 -0600

 On Thu, Dec 27, 2001 at 05:09:55AM -0800, Eric Yu wrote:
 > On src/games/primes/primes.c, line 85, "if and onl if".
 > 
 > >How-To-Repeat:
 > In the file.
 > 
 > >Fix:
 > - * sieve, table[i] == 1 if and only iff 2*i-1 is prime.
 > + * sieve, table[i] == 1 if and only if 2*i-1 is prime.
 
 To a mathematician, the phrase "table[i] == 1 iff 2*i-1 is prime" is
 equivalent to "table[i] == 1 if and only if 2*i-1 is prime".  That is,
 "iff" is a neologism for "if and only if".  So it is not a misspelling,
 but a redundancy. :)
 
 -andy

From: Peter Pentchev <roam@ringlet.net>
To: Andy Isaacson <adi@hexapodia.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/33242: misspelling in primes.c
Date: Thu, 27 Dec 2001 17:59:05 +0200

 On Thu, Dec 27, 2001 at 09:55:00AM -0600, Andy Isaacson wrote:
 > On Thu, Dec 27, 2001 at 05:09:55AM -0800, Eric Yu wrote:
 > > On src/games/primes/primes.c, line 85, "if and onl if".
 > > 
 > > >How-To-Repeat:
 > > In the file.
 > > 
 > > >Fix:
 > > - * sieve, table[i] == 1 if and only iff 2*i-1 is prime.
 > > + * sieve, table[i] == 1 if and only if 2*i-1 is prime.
 > 
 > To a mathematician, the phrase "table[i] == 1 iff 2*i-1 is prime" is
 > equivalent to "table[i] == 1 if and only if 2*i-1 is prime".  That is,
 > "iff" is a neologism for "if and only if".  So it is not a misspelling,
 > but a redundancy. :)
 
 Yes, I noted that in my commit message :)  However, for the layman,
 the expanded form of the phrase is much clearer and much less prone to
 misunderstanding.
 
 G'luck,
 Peter
 
 -- 
 This sentence claims to be an Epimenides paradox, but it is lying.
State-Changed-From-To: suspended->closed 
State-Changed-By: roam 
State-Changed-When: Fri Dec 28 01:09:54 PST 2001 
State-Changed-Why:  
Merged into 4.x-stable, rev. 1.15.2.1 of src/games/primes/primes.c. 
Thank you for the problem report! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33242 
>Unformatted:
