mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 13:50:16 +00:00
chore(doc): add documentation to VariableController::remove
This commit is contained in:
@@ -145,6 +145,8 @@ impl VariableController {
|
|||||||
self.set(key, &value.to_le_bytes(), class)
|
self.set(key, &value.to_le_bytes(), class)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Remove the variable specified by `key`.
|
||||||
|
/// This can fail if the variable is not set.
|
||||||
pub fn remove(&self, key: &str) -> Result<()> {
|
pub fn remove(&self, key: &str) -> Result<()> {
|
||||||
let name = Self::name(key)?;
|
let name = Self::name(key)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user