Kaynağa Gözat

Remove stale comment since a1b46ece05e73896250f86815c4ad6df6095797d

Tamir Duberstein 1 ay önce
ebeveyn
işleme
b6daf463e6
1 değiştirilmiş dosya ile 0 ekleme ve 1 silme
  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