diff --git a/docs/src/dimarrays.md b/docs/src/dimarrays.md index 9f8c66412..0a70ae212 100644 --- a/docs/src/dimarrays.md +++ b/docs/src/dimarrays.md @@ -58,12 +58,12 @@ fill(7, X(5), Y(10)) fill(7, X(5), Y(10); name=:fill, metadata=Dict()) ``` -== generator expressions +== generator construction ```@ansi dimarray -[(x, y) for x in X(10:10:50), y in Y(0.0:0.1:1.0)] -DimArray((x, y) for x in X(10:10:50), y in Y(0.0:0.1:1.0)) -DimArray((x, y) for x in X(10:10:50), y in Y(0.0:0.1:1.0); name = :Value) +[x + y for x in X(1:5), y in Y(1:10)] +DimArray(x + y for x in X(1:5), y in Y(1:10)) +DimArray(x + y for x in X(1:5), y in Y(1:10); name=:sum, metadata=Dict()) ``` :::