www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Typos in std.process.execute documentation?

reply "Nikhil Padmanabhan" <nikhil.padmanabhan gmail.com> writes:
Hi,

I just noticed what looks like two typos in the 
std.process.execute documentation :

1/
   auto dmd = execute("dmd", "myapp.d");
should be
   auto dmd = execute(["dmd", "myapp.d"]);

2/
   if (status ==0)
should be
   if (status !=0)

Should I file a bug report, or is there a way I can simply submit 
a correction for review? Sorry if I missed the instructions 
somewhere....

Thanks!
-- Nikhil
Dec 08 2013
parent "Craig Dillabaugh" <craig.dillabaugh gmail.com> writes:
On Sunday, 8 December 2013 at 21:33:25 UTC, Nikhil Padmanabhan 
wrote:
 Hi,

 I just noticed what looks like two typos in the 
 std.process.execute documentation :

 1/
   auto dmd = execute("dmd", "myapp.d");
 should be
   auto dmd = execute(["dmd", "myapp.d"]);

 2/
   if (status ==0)
 should be
   if (status !=0)

 Should I file a bug report, or is there a way I can simply 
 submit a correction for review? Sorry if I missed the 
 instructions somewhere....

 Thanks!
 -- Nikhil
You can access the Phobos source code on Github: https://github.com/D-Programming-Language The documentation is in DDOC and is included in the source file (like DOxygen if you aren't already familiar) so you can edit the sample code there in the file for std.process.execute. If your corrections are wrong, someone will let you know. Note that the website sometimes lags the actual DDOC in Phobos, so your bugs may have already been corrected by someone else (I thought I had found one once too.) Cheers, Craig
Dec 09 2013