mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* doc/lispintro/emacs-lisp-intro.texi (Data types):
Improve documentation of 'substring'.
This commit is contained in:
parent
80e46ac5e1
commit
f230b2ff31
1 changed files with 6 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue