Skip to content

Commit

Permalink
Fix target standard stream for error in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Mar 29, 2022
1 parent 244e107 commit bd6f0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eg/NavalFate/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ naval_fate.exe mine (set|remove) <x> <y> [--moored | --drifting]

static int ShowHelp(string help) { Console.WriteLine(help); return 0; }
static int ShowVersion(string version) { Console.WriteLine(version); return 0; }
static int OnError(string usage) { Console.WriteLine(usage); return 1; }
static int OnError(string usage) { Console.Error.WriteLine(usage); return 1; }

static int Run(IDictionary<string, ArgValue> arguments)
{
Expand Down

0 comments on commit bd6f0d4

Please sign in to comment.