mirror of
https://github.com/dlang/phobos.git
synced 2025-05-09 13:02:30 +03:00
Style fix: add whitespace after if/while
This commit is contained in:
parent
99398975d4
commit
df2e72d113
3 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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)];
|
||||
|
|
|
@ -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;
|
||||
}()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue