Skip to content

Commit 53cf5ad

Browse files
authored
Merge pull request #913 from yixuan/bugfix
Proposed fixes for Stan User's Guide
2 parents 2956f21 + ee9a18b commit 53cf5ad

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/stan-users-guide/matrices-arrays.qmd

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ Tuples provide a way to represent a sequence of values of
7171
heterogeneous types. For example, `tuple(int, real)` is the type of a
7272
pair consisting of an integer and a real number and `tuple(array[5]
7373
int, vector[6])` is the type of pairs where the first element is a
74-
five-element array of integers, the second entry is an integer, and
75-
the third is a six-element vector.
74+
five-element array of integers, and the second is a six-element vector.
7675

7776

7877
### Tuple syntax {-}
@@ -409,12 +408,9 @@ operations involving multiple indexing and range indexing.
409408

410409
Stan expressions are all evaluated before assignment happens, so there
411410
is no danger of so-called aliasing in array, vector, or matrix
412-
operations. Contrast the behavior of the assignments to `u` and
413-
`x`, which start with the same values.
414-
415-
The loop assigning to `u` and the compound slicing assigning to `x`.
416-
417-
the following trivial Stan program.
411+
operations. In the following Stan program, contrast the behavior of
412+
the loop assignment to `u` and the compound slicing assignment to `x`,
413+
where `u` and `x` start with the same values.
418414

419415
```stan
420416
transformed data {

0 commit comments

Comments
 (0)