From 4dffd662f0c908d2539bd16f2b0ff8a3a1b06dd4 Mon Sep 17 00:00:00 2001 From: Matthew Carter Date: Tue, 3 Nov 2020 20:52:02 -0500 Subject: [PATCH] Fix function doc to match that of C POPEN It may be misleading to some user to believe it is taking a path to a file, when it is executing an arbitrary shell command for the first argument. --- src/core/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/io.c b/src/core/io.c index d9636db0..39dfdbde 100644 --- a/src/core/io.c +++ b/src/core/io.c @@ -777,7 +777,7 @@ static const JanetReg io_cfuns[] = { #ifndef JANET_NO_PROCESSES { "file/popen", cfun_io_popen, - JDOC("(file/popen path &opt mode)\n\n" + JDOC("(file/popen command &opt mode)\n\n" "Open a file that is backed by a process. The file must be opened in either " "the :r (read) or the :w (write) mode. In :r mode, the stdout of the " "process can be read from the file. In :w mode, the stdin of the process "