Skip to content

Commit 1c9ff2f

Browse files
committed
fix mixin style
1 parent 545dfd0 commit 1c9ff2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/experimental/ndslice/slice.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2478,7 +2478,7 @@ struct Slice(size_t _N, _Range)
24782478
+/
24792479
auto ref opIndexOpAssign(string op, T)(T value, size_t[N] _indexes...)
24802480
{
2481-
mixin (`return _ptr[indexStride(_indexes)] ` ~ op ~ `= value;`);
2481+
return mixin (`_ptr[indexStride(_indexes)] ` ~ op ~ `= value`);
24822482
}
24832483

24842484
static if (doUnittest)
@@ -2730,7 +2730,7 @@ struct Slice(size_t _N, _Range)
27302730
// @@@workaround@@@ for Issue 16473
27312731
//if (op == `++` || op == `--`)
27322732
{
2733-
mixin (`return ` ~ op ~ `_ptr[indexStride(_indexes)];`);
2733+
return mixin (`` ~ op ~ `_ptr[indexStride(_indexes)]`);
27342734
}
27352735

27362736
static if (doUnittest)

0 commit comments

Comments
 (0)