wasm: add comment on why DataSection::bytes is public

This commit is contained in:
Brian Carroll 2022-03-02 08:03:00 +00:00
parent 896715cd58
commit 5882ee4af0

View file

@ -1022,7 +1022,7 @@ impl Serialize for DataSegment<'_> {
#[derive(Debug)]
pub struct DataSection<'a> {
count: u32,
pub bytes: Vec<'a, u8>,
pub bytes: Vec<'a, u8>, // public so backend.rs can calculate addr of first string
}
impl<'a> DataSection<'a> {