From 050a211838220d456abb54fd259c668259e3acfa Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 14 Nov 2020 19:41:24 -0800 Subject: [PATCH] Clarify the role of the 'in' param in inputter_t constructor --- src/input.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input.h b/src/input.h index 4873b10ae..0bb328d92 100644 --- a/src/input.h +++ b/src/input.h @@ -39,7 +39,8 @@ class inputter_t { char_event_t read_characters_no_readline(); public: - inputter_t(parser_t &parser, int in = 0); + /// Construct from a parser, and the fd from which to read. + explicit inputter_t(parser_t &parser, int in = STDIN_FILENO); /// Read a character from stdin. Try to convert some escape sequences into character constants, /// but do not permanently block the escape character.