Skip to content

Commit 2504166

Browse files
committed
fix series
1 parent dd898d0 commit 2504166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/mir/series.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ struct Observation(Index, Data)
112112
/// Value or ndslice.
113113
Data data;
114114
/// An alias for key-value representation.
115-
alias value = index;
115+
alias value = data;
116116
}
117117

118118
/// Convenient function for $(LREF Observation) construction.
@@ -208,7 +208,7 @@ struct Series(IndexIterator, SliceKind kind, size_t[] packs, Iterator)
208208
}
209209

210210
/// An alias for key-value representation.
211-
alias value = index;
211+
alias value = data;
212212

213213
/++
214214
Special `[] =` index-assign operator for index-series.

0 commit comments

Comments
 (0)