emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master f230b2f: * doc/lispintro/emacs-lisp-intro.texi (Dat


From: Xue Fuqiao
Subject: [Emacs-diffs] master f230b2f: * doc/lispintro/emacs-lisp-intro.texi (Data types):
Date: Thu, 25 Jun 2015 02:52:19 +0000

branch: master
commit f230b2ff3136120a9be544a5d3a974f7087ce55b
Author: Xue Fuqiao <address@hidden>
Commit: Xue Fuqiao <address@hidden>

    * doc/lispintro/emacs-lisp-intro.texi (Data types):
    Improve documentation of 'substring'.
---
 doc/lispintro/emacs-lisp-intro.texi |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/doc/lispintro/emacs-lisp-intro.texi 
b/doc/lispintro/emacs-lisp-intro.texi
index 83d6022..183e68f 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -1947,10 +1947,12 @@ The value produced by evaluating this expression is 
@code{"abcdef"}.
 A function such as @code{substring} uses both a string and numbers as
 arguments.  The function returns a part of the string, a substring of
 the first argument.  This function takes three arguments.  Its first
-argument is the string of characters, the second and third arguments are
-numbers that indicate the beginning and end of the substring.  The
-numbers are a count of the number of characters (including spaces and
-punctuation) from the beginning of the string.
+argument is the string of characters, the second and third arguments
+are numbers that indicate the beginning (inclusive) and end
+(exclusive) of the substring.  The numbers are a count of the number
+of characters (including spaces and punctuation) from the beginning of
+the string. Note that the characters in a string are numbered from
+zero, not one.
 
 @need 800
 For example, if you evaluate the following:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]