mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 09:23:25 +00:00
Fix all spelling mistakes in history by typos tool
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b29d3b5409
commit
86f09eef75
@ -11,7 +11,7 @@ Registering a crate as component by marking a function in the lib.rs with `#[ini
|
||||
|
||||
### Component initialization
|
||||
|
||||
Component system need to be initialized by calling `componet::init_all` function and it needs information about all components. Usually it is used with the `component::parse_metadata` macro.
|
||||
Component system need to be initialized by calling `component::init_all` function and it needs information about all components. Usually it is used with the `component::parse_metadata` macro.
|
||||
|
||||
## Example
|
||||
|
||||
|
@ -128,7 +128,7 @@ fn parse_input(components: Vec<ComponentInfo>) -> BTreeMap<String, ComponentInfo
|
||||
out
|
||||
}
|
||||
|
||||
/// Match the ComponetInfo with ComponentRegistry. The key is the relative path of one component
|
||||
/// Match the ComponentInfo with ComponentRegistry. The key is the relative path of one component
|
||||
fn match_and_call(
|
||||
mut components: BTreeMap<String, ComponentInfo>,
|
||||
) -> Result<(), ComponentSystemInitError> {
|
||||
@ -161,7 +161,7 @@ fn match_and_call(
|
||||
infos.push(info);
|
||||
}
|
||||
|
||||
debug!("Remain componets:{components:?}");
|
||||
debug!("Remain components:{components:?}");
|
||||
|
||||
if !components.is_empty() {
|
||||
info!("Exists components that are not initialized");
|
||||
@ -174,11 +174,11 @@ fn match_and_call(
|
||||
for i in infos {
|
||||
info!("Component initializing:{:?}", i);
|
||||
if let Err(res) = i.function.unwrap().call(()) {
|
||||
error!("Component initalize error:{:?}", res);
|
||||
error!("Component initialize error:{:?}", res);
|
||||
} else {
|
||||
info!("Component initalize complete");
|
||||
info!("Component initialize complete");
|
||||
}
|
||||
}
|
||||
info!("All components initalization completed");
|
||||
info!("All components initialization completed");
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user