bindings: python: fix the default_val argument name in the doc string
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 9 Aug 2019 09:47:24 +0000 (11:47 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 9 Aug 2019 09:49:09 +0000 (11:49 +0200)
The argument in Line.request() is called default_val, not default_vals.
For backward compatibility with older versions default_vals would still
work if it was passed a tuple or list, but let's not confuse users:
default_val is the preferred way for single lines.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/python/gpiodmodule.c

index ff727711e5d77e6ac65af5a8568286c862d49955..deeba10c4586c3c210b9e599c528baeffd970fda 100644 (file)
@@ -410,7 +410,7 @@ static PyObject *gpiod_Line_is_open_source(gpiod_LineObject *self,
 }
 
 PyDoc_STRVAR(gpiod_Line_request_doc,
-"request(consumer[, type[, flags[, default_vals]]]) -> None\n"
+"request(consumer[, type[, flags[, default_val]]]) -> None\n"
 "\n"
 "Request this GPIO line.\n"
 "\n"