Skip to content

Commit f48b7a2

Browse files
committed
minor DIP1000 fixup
1 parent 441100d commit f48b7a2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

source/mir/ndslice/slice.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ public:
954954
}
955955

956956
/// ditto
957-
auto lightScope()() return const scope @property
957+
auto lightScope()() return scope const @property
958958
{
959959
auto ret = Slice!(LightConstOf!(LightScopeOf!Iterator), N, kind, staticMap!(LightConstOfLightScopeOf, Labels))
960960
(_structure, .lightScope(_iterator));
@@ -1203,7 +1203,7 @@ public:
12031203
}
12041204

12051205
/// ditto
1206-
auto field()() return const scope @trusted @property
1206+
auto field()() return scope const @trusted @property
12071207
{
12081208
return this.lightConst.field;
12091209
}
@@ -2488,7 +2488,7 @@ public:
24882488
See_also: $(LREF .Slice.idup)
24892489
+/
24902490
Slice!(Unqual!DeepElement*, N)
2491-
dup()() scope @property
2491+
dup()() scope @property @safe
24922492
{
24932493
if (__ctfe)
24942494
{

source/mir/serde.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ auto fastToUpper()(char a)
23222322
}
23232323

23242324
@safe pure nothrow @nogc
2325-
char[] fastToUpperInPlace()(scope return char[] a)
2325+
char[] fastToUpperInPlace()(return scope char[] a)
23262326
{
23272327
foreach(ref char e; a)
23282328
e = e.fastToUpper;

0 commit comments

Comments
 (0)