mirror of
https://github.com/dlang/phobos.git
synced 2025-05-04 09:00:22 +03:00
Style fix: enforce allman style
This commit is contained in:
parent
1ca4d31e21
commit
6f1690f6b1
2 changed files with 6 additions and 3 deletions
|
@ -1506,7 +1506,8 @@ private void shortSort(alias less, Range)(Range r)
|
|||
immutable maxJ = r.length - 2;
|
||||
for (size_t i = r.length - 6; ; --i)
|
||||
{
|
||||
static if (is(typeof(() nothrow {
|
||||
static if (is(typeof(() nothrow
|
||||
{
|
||||
auto t = r[0]; if (pred(t, r[0])) r[0] = r[0];
|
||||
}))) // Can we afford to temporarily invalidate the array?
|
||||
{
|
||||
|
|
|
@ -147,7 +147,8 @@ unittest
|
|||
//issue 4574
|
||||
//empty successful match still advances the input
|
||||
string[] pres, posts, hits;
|
||||
foreach (m; matchFn("abcabc", regex("","g"))) {
|
||||
foreach (m; matchFn("abcabc", regex("","g")))
|
||||
{
|
||||
pres ~= m.pre;
|
||||
posts ~= m.post;
|
||||
assert(m.hit.empty);
|
||||
|
@ -248,7 +249,8 @@ unittest
|
|||
auto w2 = ["", "abc", "de", "fg", "hi"];
|
||||
|
||||
uint cnt;
|
||||
foreach (e; sp2) {
|
||||
foreach (e; sp2)
|
||||
{
|
||||
assert(w2[cnt++] == e);
|
||||
}
|
||||
assert(equal(sp2, w2));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue