mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
Style fix: Add whitespace between import colon
This commit is contained in:
parent
df2e72d113
commit
c5ba7c7d0b
4 changed files with 8 additions and 8 deletions
|
@ -1298,8 +1298,8 @@ See_Also:
|
|||
auto setUnion(alias less = "a < b", Rs...)
|
||||
(Rs rs)
|
||||
{
|
||||
import std.algorithm.iteration: uniq;
|
||||
import std.algorithm.sorting: merge;
|
||||
import std.algorithm.iteration : uniq;
|
||||
import std.algorithm.sorting : merge;
|
||||
return merge!(less, Rs)(rs).uniq;
|
||||
}
|
||||
|
||||
|
@ -1330,7 +1330,7 @@ auto setUnion(alias less = "a < b", Rs...)
|
|||
@safe unittest
|
||||
{
|
||||
// save
|
||||
import std.range: dropOne;
|
||||
import std.range : dropOne;
|
||||
int[] a = [0, 1, 2];
|
||||
int[] b = [0, 3];
|
||||
auto arr = a.setUnion(b);
|
||||
|
@ -1353,7 +1353,7 @@ auto setUnion(alias less = "a < b", Rs...)
|
|||
{
|
||||
import std.algorithm.comparison : equal;
|
||||
import std.internal.test.dummyrange;
|
||||
import std.range: iota;
|
||||
import std.range : iota;
|
||||
|
||||
auto dummyResult1 = [1, 1.5, 2, 3, 4, 5, 5.5, 6, 7, 8, 9, 10];
|
||||
auto dummyResult2 = iota(1, 11);
|
||||
|
|
|
@ -1216,7 +1216,7 @@ Merge!(less, Rs) merge(alias less = "a < b", Rs...)
|
|||
@safe pure nothrow unittest
|
||||
{
|
||||
// save
|
||||
import std.range: dropOne;
|
||||
import std.range : dropOne;
|
||||
int[] a = [1, 2];
|
||||
int[] b = [0, 3];
|
||||
auto arr = a.merge(b);
|
||||
|
|
|
@ -416,8 +416,8 @@ unittest
|
|||
|
||||
unittest // issue 16506
|
||||
{
|
||||
import std.experimental.allocator.gc_allocator: GCAllocator;
|
||||
import std.experimental.allocator.mallocator: Mallocator;
|
||||
import std.experimental.allocator.gc_allocator : GCAllocator;
|
||||
import std.experimental.allocator.mallocator : Mallocator;
|
||||
|
||||
static void f(ParentAllocator)(size_t sz)
|
||||
{
|
||||
|
|
|
@ -843,7 +843,7 @@ template Tuple(Specs...)
|
|||
if (is(typeof(translate) : V[K], V, K) && isSomeString!V &&
|
||||
(isSomeString!K || is(K : size_t)))
|
||||
{
|
||||
import std.range: ElementType;
|
||||
import std.range : ElementType;
|
||||
static if (isSomeString!(ElementType!(typeof(translate.keys))))
|
||||
{
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue