From: Kent Gibson Date: Mon, 16 Jan 2023 12:51:44 +0000 (+0800) Subject: bindings: rust: fix documentation of line_request set_values X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=629bb31bed8c0a57227c815e04effd60c02f80dd;p=qemu-gpiodev%2Flibgpiod.git bindings: rust: fix documentation of line_request set_values Replace "Get" with "Set". Signed-off-by: Kent Gibson Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/rust/libgpiod/src/line_request.rs b/bindings/rust/libgpiod/src/line_request.rs index c16ec9f..d9e041c 100644 --- a/bindings/rust/libgpiod/src/line_request.rs +++ b/bindings/rust/libgpiod/src/line_request.rs @@ -106,7 +106,7 @@ impl Request { } } - /// Get values of a subset of lines associated with the request. + /// Set values of a subset of lines associated with the request. pub fn set_values_subset(&self, map: ValueMap) -> Result<()> { let mut offsets = Vec::new(); let mut values = Vec::new(); @@ -136,7 +136,7 @@ impl Request { } } - /// Get values of all lines associated with the request. + /// Set values of all lines associated with the request. pub fn set_values(&self, values: &[Value]) -> Result<()> { if values.len() != self.num_lines() as usize { return Err(Error::InvalidArguments);