Skip to content

Commit 045d61b

Browse files
committed
opSlice doesn't have to return user-defined type
1 parent 6f88980 commit 045d61b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/operatoroverloading.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,8 +975,8 @@ void main()
975975

976976
$(P To overload array slicing of the form $(D a[)$(SLICE)$(D ]),
977977
two steps are needed. First, the expressions of the form $(SLICE) are
978-
translated via $(D opSlice!0) into user-defined objects that encapsulate
979-
the endpoints $(I i) and $(I j). Then these user-defined objects are
978+
translated via $(D opSlice!0) into objects that encapsulate
979+
the endpoints $(I i) and $(I j). Then these objects are
980980
passed to $(D opIndex) to perform the actual slicing.)
981981

982982
$(SPEC_RUNNABLE_EXAMPLE_RUN

0 commit comments

Comments
 (0)