add doc comment

This commit is contained in:
NikVolf
2018-01-18 19:28:57 +03:00
parent fa87fff6d0
commit 7f79860e52

View File

@ -144,6 +144,10 @@ impl Module {
None
}
/// Try to parse name section in place
/// Corresponding custom section with proper header will convert to name sections
/// If some of them will fail to be decoded, Err variant is returned with the list of
/// (index, Error) tuples of failed sections.
pub fn parse_names(mut self) -> Result<Self, (Vec<(usize, Error)>, Self)> {
let mut parse_errors = Vec::new();