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: re: [PATCH] wrong description of string-rindex Date: Tue, 10 Sep 2013 16:38:11 +0800 Organization: HFG Message-ID: <1378802291.4642.25.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-SLcmEbUe2Ou8x0ii4Ttx" X-Trace: ger.gmane.org 1378802311 4929 80.91.229.3 (10 Sep 2013 08:38:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2013 08:38:31 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 10 10:38: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 1VJJT0-0006NY-Pr for guile-devel@m.gmane.org; Tue, 10 Sep 2013 10:38:35 +0200 Original-Received: from localhost ([::1]:56421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJJT0-0001jG-Du for guile-devel@m.gmane.org; Tue, 10 Sep 2013 04:38:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJJSq-0001fo-Ah for guile-devel@gnu.org; Tue, 10 Sep 2013 04:38:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJJSh-0004CU-OT for guile-devel@gnu.org; Tue, 10 Sep 2013 04:38:24 -0400 Original-Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:63981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJJSh-0004BD-Cf for guile-devel@gnu.org; Tue, 10 Sep 2013 04:38:15 -0400 Original-Received: by mail-pd0-f175.google.com with SMTP id q10so7342718pdj.34 for ; Tue, 10 Sep 2013 01:38:14 -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=Kyht8nYyjumAxK0x1xgWQfZ/sv+dRf/vEfjLsEyKRxE=; b=SvJXI2UupfhLT3SqR/cfqoL6F+KHdTHlRLs4s5b7sn5Jmh837l0FmyKT8gKALeGs9H bUsw/bwqha9pJaowRBSUVE3o8AjMdyE2r8K5PqvD54BOrUKt+82M97eKw0wBrbLKkt27 Em0VfYxnm/DzlIi6iEPBMSuq80SMHOKXaKKHtofWVe/7a4R/H3tVXCkFXuISZIeK+dvr IJ/Vaeq+Kb1SuGIuSi2eGv7YxfVyHFysWNlqlgOM5j+psySF73+esu7NVJyE8+KL59Dw 636UnpeRx+6xCYqIcen/lFXD6JMoq0Q32GNpw0AuTVgxm3vqIAo1TIGwLa6euF80Z77W YE7g== X-Received: by 10.66.168.7 with SMTP id zs7mr7847935pab.152.1378802294442; Tue, 10 Sep 2013 01:38:14 -0700 (PDT) Original-Received: from [147.2.147.112] ([203.192.156.9]) by mx.google.com with ESMTPSA id a5sm21476755pbw.4.1969.12.31.16.00.00 (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 10 Sep 2013 01:38:14 -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:c02::22f 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:16625 Archived-At: --=-SLcmEbUe2Ou8x0ii4Ttx Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit oops, I realized that string-index-right which is introduced in srfi-13 has the same issue too, and patch update here. --=-SLcmEbUe2Ou8x0ii4Ttx Content-Disposition: attachment; filename*0=0001-Fixed-typo-of-string-rindex-and-string-index-right-d.pat; filename*1=ch Content-Type: text/x-patch; name="0001-Fixed-typo-of-string-rindex-and-string-index-right-d.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit >From 9911b0f9b51358d9f96b23c924b4597b8bc5f5e5 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 and string-index-right document * doc/ref/api-data.texi (string-rindex, string-index-right) * libguile/srfi-13.c (string-rindex, string-index-right): fixed the wrong description in document --- doc/ref/api-data.texi | 4 ++-- libguile/srfi-13.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index 7603180..ebf3069 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 @@ -3778,7 +3778,7 @@ Is @var{s1} a suffix of @var{s2}, ignoring character case? @deffn {Scheme Procedure} string-index-right s char_pred [start [end]] @deffnx {C Function} scm_string_index_right (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 diff --git a/libguile/srfi-13.c b/libguile/srfi-13.c index 4e5d572..d979a49 100644 --- a/libguile/srfi-13.c +++ b/libguile/srfi-13.c @@ -1709,7 +1709,7 @@ SCM_DEFINE (scm_string_index, "string-index", 2, 2, 0, SCM_DEFINE (scm_string_index_right, "string-index-right", 2, 2, 0, (SCM s, SCM char_pred, SCM start, SCM end), "Search through the string @var{s} from right to left, returning\n" - "the index of the last occurrence of a character which\n" + "the index of the first occurrence of a character which\n" "\n" "@itemize @bullet\n" "@item\n" @@ -1774,7 +1774,7 @@ SCM_DEFINE (scm_string_index_right, "string-index-right", 2, 2, 0, SCM_DEFINE (scm_string_rindex, "string-rindex", 2, 2, 0, (SCM s, SCM char_pred, SCM start, SCM end), "Search through the string @var{s} from right to left, returning\n" - "the index of the last occurrence of a character which\n" + "the index of the first occurrence of a character which\n" "\n" "@itemize @bullet\n" "@item\n" -- 1.7.10.4 --=-SLcmEbUe2Ou8x0ii4Ttx--