Merge pull request #182 from BBasile/style-body-do

\s\body\do
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2018-07-12 10:10:05 +02:00 committed by GitHub
commit 46db7d3ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -118,7 +118,7 @@ struct Dumper(Range)
{
assert(indent != 0, "Can't use zero YAML indent width");
}
body
do
{
indent_ = indent;
}

View file

@ -195,7 +195,7 @@ struct Loader
{
assert(!done_, "Loader: Trying to load YAML twice");
}
body
do
{
try
{
@ -258,7 +258,7 @@ struct Loader
{
assert(!done_, "Loader: Trying to load YAML twice");
}
body
do
{
scope(exit) { done_ = true; }
try

View file

@ -414,7 +414,7 @@ struct Node
"Lengths of keys and values arrays to construct " ~
"a YAML node from don't match");
}
body
do
{
tag_ = tag;

View file

@ -142,7 +142,7 @@ string[][string] findTestFilenames(const string dir) @trusted
*/
void stringsToTuple(uint index, F ...)(ref F tuple, const string[] strings)
in{assert(F.length == strings.length);}
body
do
{
tuple[index] = strings[index];
static if(index > 0){stringsToTuple!(index - 1, F)(tuple, strings);}