Skip to content

Commit 050781d

Browse files
committed
Added proper indentation
1 parent 5498a70 commit 050781d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

std/format.d

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4361,6 +4361,10 @@ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec)
43614361
return parse!T(input);
43624362
}
43634363

4364+
/**
4365+
* Function that performs raw reading. Used by unformatValue
4366+
* for integral and float types.
4367+
*/
43644368
private T rawRead(T, Range)(ref Range input)
43654369
if (is(Unqual!(ElementEncodingType!Range) == char)
43664370
|| is(Unqual!(ElementEncodingType!Range) == byte)
@@ -4404,7 +4408,7 @@ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec)
44044408
static if (is(Unqual!(ElementEncodingType!Range) == char)
44054409
|| is(Unqual!(ElementEncodingType!Range) == byte)
44064410
|| is(Unqual!(ElementEncodingType!Range) == ubyte))
4407-
return rawRead!T(input);
4411+
return rawRead!T(input);
44084412
else
44094413
throw new Exception("The raw read specifier %r may only be used with narrow strings and ranges of bytes.");
44104414
}
@@ -4454,7 +4458,7 @@ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec)
44544458
static if (is(Unqual!(ElementEncodingType!Range) == char)
44554459
|| is(Unqual!(ElementEncodingType!Range) == byte)
44564460
|| is(Unqual!(ElementEncodingType!Range) == ubyte))
4457-
return rawRead!T(input);
4461+
return rawRead!T(input);
44584462
else
44594463
throw new Exception("The raw read specifier %r may only be used with narrow strings and ranges of bytes.");
44604464
}

0 commit comments

Comments
 (0)