diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-12-13 21:02:51 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-12-13 21:02:51 +0200 |
commit | 9d3481aa7472d05543df77e0b2da9077e5ab3795 (patch) | |
tree | d93c2b1ae2bc7d77108018da5c07f5f3454bee13 /doc/gawk.texi | |
parent | 74b4f4e5a35f07bc17092e8c9ee01ba77cc8175d (diff) | |
download | egawk-9d3481aa7472d05543df77e0b2da9077e5ab3795.tar.gz egawk-9d3481aa7472d05543df77e0b2da9077e5ab3795.tar.bz2 egawk-9d3481aa7472d05543df77e0b2da9077e5ab3795.zip |
Doc fixes.
Diffstat (limited to 'doc/gawk.texi')
-rw-r--r-- | doc/gawk.texi | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/gawk.texi b/doc/gawk.texi index 747a7f69..dbda87d5 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -13895,12 +13895,13 @@ The @samp{for (item in array)} statement (@pxref{Scanning an Array}) can be nested to scan all the elements of an array of arrays if it is rectangular in structure. In order to print the contents (scalar values) of a two-dimensional array of arrays -with each subarray having the same length, you could use the following -code: +(i.e., in which each first-level element is itself an +array, not necessarily of the same length) +you could use the following code: @example for (i in array) - for (j in array[j]) + for (j in array[i]) print array[i][j] @end example @@ -13910,7 +13911,7 @@ the following code prints the elements of our main array @code{a}: @example for (i in a) @{ - for (j in a[j]) @{ + for (j in a[i]) @{ if (j == 3) @{ for (k in a[i][j]) print a[i][j][k] |