浏览代码

Remove stale comment since a1b46ece05e73896250f86815c4ad6df6095797d

Tamir Duberstein 1 月之前
父节点
当前提交
b6daf463e6
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      aya-obj/src/btf/btf.rs

+ 0 - 1
aya-obj/src/btf/btf.rs

@@ -464,7 +464,6 @@ impl Btf {
     pub fn to_bytes(&self) -> Vec<u8> {
         // Safety: btf_header is POD
         let mut buf = unsafe { bytes_of::<btf_header>(&self.header).to_vec() };
-        // Skip the first type since it's always BtfType::Unknown for type_by_id to work
         buf.extend(self.types.to_bytes());
         buf.put(self.strings.as_slice());
         buf