Skip to content

Commit 1da19a9

Browse files
authored
Various improvements to mir.stdio (#414)
* Use scope return inplace of return scope in FileMemembers * Correct naming of FileMemembers to FileMembers
1 parent b6bdb63 commit 1da19a9

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

source/mir/stdio.d

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct File
104104
///
105105
core.stdc.stdio.FILE* fp;
106106

107-
mixin FileMemembers;
107+
mixin FileMembers;
108108

109109
@trusted @nogc:
110110

@@ -144,7 +144,7 @@ struct AssumeNothrowFile
144144
///
145145
core.stdc.stdio.FILE* fp;
146146

147-
mixin FileMemembers;
147+
mixin FileMembers;
148148

149149
@trusted @nogc nothrow:
150150

@@ -176,7 +176,7 @@ struct AssumeNothrowFile
176176
}
177177

178178
///
179-
mixin template FileMemembers()
179+
mixin template FileMembers()
180180
{
181181
///
182182
void put(C)(const C data)
@@ -197,7 +197,7 @@ mixin template FileMemembers()
197197
template opBinary(string op : "<<")
198198
{
199199
///
200-
ref opBinary(T)(auto ref const T value) return scope
200+
ref opBinary(T)(auto ref const T value) scope return
201201
{
202202
if (__ctfe)
203203
return this;
@@ -206,7 +206,7 @@ mixin template FileMemembers()
206206
}
207207

208208
/// Prints new line and flushes the stream
209-
ref opBinary(NewLine endl) return scope
209+
ref opBinary(NewLine endl) scope return
210210
{
211211
if (__ctfe)
212212
return this;
@@ -254,7 +254,7 @@ class FileException : Exception
254254
string msg,
255255
string file = __FILE__,
256256
size_t line = __LINE__,
257-
Throwable next = null) pure nothrow @nogc @safe
257+
Throwable next = null) pure nothrow @nogc @safe
258258
{
259259
super(msg, file, line, next);
260260
}
@@ -265,7 +265,7 @@ class FileException : Exception
265265
Throwable next,
266266
string file = __FILE__,
267267
size_t line = __LINE__,
268-
) pure nothrow @nogc @safe
268+
) pure nothrow @nogc @safe
269269
{
270270
this(msg, file, line, next);
271271
}
@@ -288,7 +288,7 @@ class FileError : Error
288288
string msg,
289289
string file = __FILE__,
290290
size_t line = __LINE__,
291-
Throwable next = null) pure nothrow @nogc @safe
291+
Throwable next = null) pure nothrow @nogc @safe
292292
{
293293
super(msg, file, line, next);
294294
}
@@ -299,7 +299,7 @@ class FileError : Error
299299
Throwable next,
300300
string file = __FILE__,
301301
size_t line = __LINE__,
302-
) pure nothrow @nogc @safe
302+
) pure nothrow @nogc @safe
303303
{
304304
this(msg, file, line, next);
305305
}

0 commit comments

Comments
 (0)