From owner-freebsd-bugs Thu Dec 27 7:55: 7 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from pirx.hexapodia.org (pirx.hexapodia.org [208.42.114.113]) by hub.freebsd.org (Postfix) with ESMTP id 2D98B37B405; Thu, 27 Dec 2001 07:55:02 -0800 (PST) Received: by pirx.hexapodia.org (Postfix, from userid 22448) id 20D4BB404; Thu, 27 Dec 2001 09:55:00 -0600 (CST) Date: Thu, 27 Dec 2001 09:55:00 -0600 From: Andy Isaacson To: Eric Yu , roam@FreeBSD.org Cc: freebsd-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: misc/33242: misspelling in primes.c Message-ID: <20011227095500.B8252@hexapodia.org> References: <200112271334.fBRDYvk32416@freefall.freebsd.org> <200112271309.fBRD9tT22279@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200112271309.fBRD9tT22279@freefall.freebsd.org>; from ericyu@mail2000.com.tw on Thu, Dec 27, 2001 at 05:09:55AM -0800 X-PGP-Fingerprint: 48 01 21 E2 D4 E4 68 D1 B8 DF 39 B2 AF A3 16 B9 X-PGP-Key-URL: http://web.hexapodia.org/~adi/pgp.txt Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message