diff options
| author | Xue Fuqiao | 2015-06-25 10:23:03 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2015-06-25 10:23:03 +0800 |
| commit | f230b2ff3136120a9be544a5d3a974f7087ce55b (patch) | |
| tree | 72163d15a507f9b7a0443794c5d922428a6dee85 | |
| parent | 80e46ac5e1fd6f76edbf272bf2ec7d90edadf2ea (diff) | |
| download | emacs-f230b2ff3136120a9be544a5d3a974f7087ce55b.tar.gz emacs-f230b2ff3136120a9be544a5d3a974f7087ce55b.zip | |
* doc/lispintro/emacs-lisp-intro.texi (Data types):
Improve documentation of 'substring'.
| -rw-r--r-- | 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 83d6022c0a6..183e68f6660 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"}. | |||
| 1947 | A function such as @code{substring} uses both a string and numbers as | 1947 | A function such as @code{substring} uses both a string and numbers as |
| 1948 | arguments. The function returns a part of the string, a substring of | 1948 | arguments. The function returns a part of the string, a substring of |
| 1949 | the first argument. This function takes three arguments. Its first | 1949 | the first argument. This function takes three arguments. Its first |
| 1950 | argument is the string of characters, the second and third arguments are | 1950 | argument is the string of characters, the second and third arguments |
| 1951 | numbers that indicate the beginning and end of the substring. The | 1951 | are numbers that indicate the beginning (inclusive) and end |
| 1952 | numbers are a count of the number of characters (including spaces and | 1952 | (exclusive) of the substring. The numbers are a count of the number |
| 1953 | punctuation) from the beginning of the string. | 1953 | of characters (including spaces and punctuation) from the beginning of |
| 1954 | the string. Note that the characters in a string are numbered from | ||
| 1955 | zero, not one. | ||
| 1954 | 1956 | ||
| 1955 | @need 800 | 1957 | @need 800 |
| 1956 | For example, if you evaluate the following: | 1958 | For example, if you evaluate the following: |