Fix documentation typo

function -> data object
This commit is contained in:
Joshua Nelson
2019-08-23 09:00:04 -04:00
committed by Benjamin Bouvier
parent 18ecf60ad5
commit 1eb6cd93b2

View File

@@ -559,7 +559,7 @@ where
Ok(total_size) Ok(total_size)
} }
/// Define a function, producing the data contents from the given `DataContext`. /// Define a data object, producing the data contents from the given `DataContext`.
pub fn define_data(&mut self, data: DataId, data_ctx: &DataContext) -> ModuleResult<()> { pub fn define_data(&mut self, data: DataId, data_ctx: &DataContext) -> ModuleResult<()> {
let compiled = { let compiled = {
let info = &self.contents.data_objects[data]; let info = &self.contents.data_objects[data];