From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: [PATCH] wrong description of string-rindex Date: Tue, 10 Sep 2013 16:22:06 +0800 Organization: HFG Message-ID: <1378801326.4642.20.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-KIxQ9JfNxwuABf9pBjZQ" X-Trace: ger.gmane.org 1378801353 27437 80.91.229.3 (10 Sep 2013 08:22:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2013 08:22:33 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 10 10:22:35 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VJJDU-00009S-8I for guile-devel@m.gmane.org; Tue, 10 Sep 2013 10:22:32 +0200 Original-Received: from localhost ([::1]:56361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJJDT-000487-Lw for guile-devel@m.gmane.org; Tue, 10 Sep 2013 04:22:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJJDH-00046k-68 for guile-devel@gnu.org; Tue, 10 Sep 2013 04:22:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJJD8-00071A-J2 for guile-devel@gnu.org; Tue, 10 Sep 2013 04:22:19 -0400 Original-Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:56583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJJD8-00070q-CC for guile-devel@gnu.org; Tue, 10 Sep 2013 04:22:10 -0400 Original-Received: by mail-pa0-f46.google.com with SMTP id fa1so7381508pad.19 for ; Tue, 10 Sep 2013 01:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:organization:content-type :mime-version; bh=BbDRjDeXh0baQkkZVQrZV1v4gTxK54btJAyKrUKdAg0=; b=zJm/C51sowQ1KAivvSyJHQRRv63RNMNfyqSJrVmWLjoj36zmeYyuADnc0XiszLdTrX lQmksJ6KlD5tTG8r9fwKX/4BlbSzXVC4KawEwajHXX9jWidDuFLi1xsik1NQETCN5PjO WdKY5aaZ51GzRrMccBh/XrN4ztckF22O6n1dUtMJ/3pxZFHW5vw38AMzW8qtgljtQZ+F gUrM/2j5wQ5Gooz4p1QwZYbHHwWyDC0Zguede60WB3H1wSVDwjp1ZSWmcaoMbSKq2Yak f/3tXSQ3TIwnEOGTaNgADkGkSCBm1BoJDwGJ0CgLeeJHLwcGv1z4+E1c2StPPCNAaGqi BiZQ== X-Received: by 10.66.196.110 with SMTP id il14mr8209676pac.130.1378801329427; Tue, 10 Sep 2013 01:22:09 -0700 (PDT) Original-Received: from [147.2.147.112] ([203.192.156.9]) by mx.google.com with ESMTPSA id oh2sm5490454pbb.3.1969.12.31.16.00.00 (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 10 Sep 2013 01:22:09 -0700 (PDT) X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16623 Archived-At: --=-KIxQ9JfNxwuABf9pBjZQ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit - Scheme Procedure: string-rindex s char_pred [start [end]] Search through the string S from right to left, returning the index of the last occurrence of a character which ------ It's actually 'first occurrence', according to the activity of function. And it's nonsense for 'last occurrence' since string-index does the same work. Here's a simple patch for that. --=-KIxQ9JfNxwuABf9pBjZQ Content-Disposition: attachment; filename="0001-Fixed-typo-of-string-rindex-document.patch" Content-Type: text/x-patch; name="0001-Fixed-typo-of-string-rindex-document.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit >From 31fe00d36c834c8ca47f60af90ebf6b0b5a598a5 Mon Sep 17 00:00:00 2001 From: Nala Ginrut Date: Tue, 10 Sep 2013 16:17:40 +0800 Subject: [PATCH] Fixed typo of string-rindex document --- doc/ref/api-data.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index 7603180..f33a3cd 100644 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -3715,7 +3715,7 @@ Return @code{#f} if no match is found. @deffn {Scheme Procedure} string-rindex s char_pred [start [end]] @deffnx {C Function} scm_string_rindex (s, char_pred, start, end) Search through the string @var{s} from right to left, returning -the index of the last occurrence of a character which +the index of the first occurrence of a character which @itemize @bullet @item -- 1.7.10.4 --=-KIxQ9JfNxwuABf9pBjZQ--