Skip to contentSkip to conversation

bindings: rust: fix documentation of line_request set_values

PATCH Applied Kent Gibson 2 participants 2 messages Jan 16, 2023 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 bindings: rust: fix documentation of line_request set_values

Replace "Get" with "Set".

---
Changes v1 -> v2:
- rebase on current master

 bindings/rust/libgpiod/src/line_request.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
bindings/rust/libgpiod/src/line_request.rs +2 -2
index c16ec9f..d9e041c 100644
@@ -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);
Signature · 1 line
2.39.0
#1 lore raw
Quoted 34 lines · Kent Gibson

Replace "Get" with "Set".

---
Changes v1 -> v2:
- rebase on current master

 bindings/rust/libgpiod/src/line_request.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
bindings/rust/libgpiod/src/line_request.rs +2 -3
index c16ec9f..d9e041c 100644
@@ -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);
--
Quoted 2 lines

2.39.0

Applied, thanks!

Bartosz