Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion std/path.d
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ auto withDefaultExtension(R, C)(auto ref R path, C[] ext)
Returns: The assembled path.
*/
immutable(ElementEncodingType!(ElementType!Range))[]
buildPath(Range)(Range segments)
buildPath(Range)(scope Range segments)
if (isInputRange!Range && isSomeString!(ElementType!Range))
{
if (segments.empty) return null;
Expand Down
4 changes: 2 additions & 2 deletions std/uni.d
Original file line number Diff line number Diff line change
Expand Up @@ -6657,13 +6657,13 @@ public:
Warning: Invalidates when this Grapheme leaves the scope,
attempts to use it then would lead to memory corruption.
+/
@system SliceOverIndexed!Grapheme opSlice(size_t a, size_t b) pure nothrow @nogc
@system SliceOverIndexed!Grapheme opSlice(size_t a, size_t b) return pure nothrow @nogc
{
return sliceOverIndexed(a, b, &this);
}

/// ditto
@system SliceOverIndexed!Grapheme opSlice() pure nothrow @nogc
@system SliceOverIndexed!Grapheme opSlice() return pure nothrow @nogc
{
return sliceOverIndexed(0, length, &this);
}
Expand Down