about summary refs log tree commit diff
path: root/Doc/Zsh/expn.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-09-14 12:17:38 +0100
committerPeter Stephenson <pws@zsh.org>2016-09-14 12:17:38 +0100
commitd0f9150530a872f04c88e7039646d18e3eaca135 (patch)
tree38afa1ecfaf82514ea0364d5380c396a4d9c899e /Doc/Zsh/expn.yo
parenta4b8ee13be494c8732c0348857befe87951a058b (diff)
downloadzsh-d0f9150530a872f04c88e7039646d18e3eaca135.tar.gz
zsh-d0f9150530a872f04c88e7039646d18e3eaca135.tar.xz
zsh-d0f9150530a872f04c88e7039646d18e3eaca135.zip
unposted: small documentation tweaks
Diffstat (limited to 'Doc/Zsh/expn.yo')
-rw-r--r--Doc/Zsh/expn.yo6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index ecb1877a2..b73151698 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -745,7 +745,7 @@ character of tt($foo) if the substitution would otherwise return a scalar,
 or the array starting at the fourth element if tt($foo) would return an
 array.  Note that with the option tt(KSH_ARRAYS) tt($foo) always returns
 a scalar (regardless of the use of the offset syntax) and a form
-such as tt($foo[*]:3) is required to extract elements of an array named
+such as tt(${foo[*]:3}) is required to extract elements of an array named
 tt(foo).
 
 If var(offset) is negative, the tt(-) may not appear immediately
@@ -761,8 +761,8 @@ expression tt(${var: offs}) does work, retrieving the offset from
 tt($offs).
 
 For further compatibility with other shells there is a special case
-for array offset 0.  This usually accesses to the
-first element of the array.  However, if the substitution refers the
+for array offset 0.  This usually accesses the
+first element of the array.  However, if the substitution refers to the
 positional parameter array, e.g. tt($@) or tt($*), then offset 0
 instead refers to tt($0), offset 1 refers to tt($1), and so on.  In
 other words, the positional parameter array is effectively extended by