Skip to content

Commit

Permalink
Change printLn to print all values followed by a newline
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohansi committed May 25, 2015
1 parent 65d6e13 commit cd51733
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Mond/Libraries/Console/ConsoleOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ public void Print(params MondValue[] arguments)
[MondFunction("printLn")]
public void PrintLn(params MondValue[] arguments)
{
if (arguments.Length == 0)
_consoleOutput.Out.WriteLine();

foreach (var v in arguments)
{
_consoleOutput.Out.Write((string)v);
_consoleOutput.Out.WriteLine();
}

_consoleOutput.Out.WriteLine();
}
}
}

0 comments on commit cd51733

Please sign in to comment.