From c3cedf2c25c92d22901b55b559ab293f7924b168 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Tue, 24 Jul 2012 00:29:02 -0400
Subject: [PATCH] Minor scan doc fixes.

---
 doc/source/array.rst | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/doc/source/array.rst b/doc/source/array.rst
index e8888442..4d66fe07 100644
--- a/doc/source/array.rst
+++ b/doc/source/array.rst
@@ -689,19 +689,19 @@ greater than 300::
     knl(a, out)
 
 The value being scanned over is a number of flags indicating whether each array
-element is greater than 300. This flag is computed by the *input_expr*. The
-prefix sum over this array gives the index (+1) of each item.  The
-*output_statement* the compares `prev_item` (the previous item's scan result,
-i.e. index) to `item` (the current item's scan result, i.e. index). If they
-differ, i.e. if the predicate was satisfied at this position, then the item is
-stored in the output at the computed index.
+element is greater than 300. These flags are computed by *input_expr*. The
+prefix sum over this array gives a running count of array items greater than
+300. The *output_statement* the compares `prev_item` (the previous item's scan
+result, i.e. index) to `item` (the current item's scan result, i.e.
+index). If they differ, i.e. if the predicate was satisfied at this
+position, then the item is stored in the output at the computed index.
 
 This example does not make use of the following advanced features also available
 in PyOpenCL:
 
 * Segmented scans
 
-* Access to the previous items in *input_expr* (e.g. for comparisons)
+* Access to the previous item in *input_expr* (e.g. for comparisons)
   See the `implementation <https://github.com/inducer/pyopencl/blob/master/pyopencl/scan.py#L1353>`_ of :func:`unique` for an example.
 
 Making Custom Scan Kernels
-- 
GitLab