diff --git a/std/algorithm/mutation.d b/std/algorithm/mutation.d index a7193005c..9fd60d9b0 100644 --- a/std/algorithm/mutation.d +++ b/std/algorithm/mutation.d @@ -737,13 +737,13 @@ void initializeAll(Range)(Range range) { for ( ; !range.empty ; range.popFront() ) { - static if(__traits(isStaticArray, T)) + static if (__traits(isStaticArray, T)) { // static array initializer only contains initialization // for one element of the static array. auto elemp = cast(void *)addressOf(range.front); auto endp = elemp + T.sizeof; - while(elemp < endp) + while (elemp < endp) { memcpy(elemp, p.ptr, p.length); elemp += p.length; diff --git a/std/experimental/ndslice/slice.d b/std/experimental/ndslice/slice.d index da69c3cdc..d6bcc75af 100644 --- a/std/experimental/ndslice/slice.d +++ b/std/experimental/ndslice/slice.d @@ -2195,7 +2195,7 @@ struct Slice(size_t _N, _Range) $(BOLD Fully defined index) +/ auto ref opIndex(size_t I)(size_t[I] _indexes...) - if(I && I <= N) + if (I && I <= N) { static if (I == PureN) return _ptr[indexStride(_indexes)]; diff --git a/std/typecons.d b/std/typecons.d index 06e47c638..809f85cc5 100644 --- a/std/typecons.d +++ b/std/typecons.d @@ -860,9 +860,9 @@ template Tuple(Specs...) { import std.array : empty; auto names = [fieldNames]; - foreach(ref n; names) + foreach (ref n; names) if (!n.empty) - if(auto p = n in translate) + if (auto p = n in translate) n = *p; return names; }())); @@ -881,7 +881,7 @@ template Tuple(Specs...) return this.rename!(aliasSeqOf!( { auto names = [fieldNames]; - foreach(k, v; translate) + foreach (k, v; translate) names[k] = v; return names; }()));