Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Mar 8, 2021
1 parent c96434f commit ff0851a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/matchers/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ pub fn is_wasm(buf: &[u8]) -> bool {
&& buf[7] == 0x00
}

/// Returns whether a buffer is an EXE.
/// DLL and EXE have the same magic number, so returns true also for a DLL.
/// Returns whether a buffer is an EXE. DLL and EXE have the same magic number, so returns true also for a DLL.
///
/// # Example
///
Expand All @@ -33,8 +32,7 @@ pub fn is_exe(buf: &[u8]) -> bool {
buf.len() > 1 && buf[0] == 0x4D && buf[1] == 0x5A
}

/// Returns whether a buffer is a DLL.
/// DLL and EXE have the same magic number, so returns true also for an EXE.
/// Returns whether a buffer is a DLL. DLL and EXE have the same magic number, so returns true also for an EXE.
pub fn is_dll(buf: &[u8]) -> bool {
is_exe(buf)
}
Expand Down Expand Up @@ -125,5 +123,5 @@ pub fn is_coff_ia64(buf: &[u8]) -> bool {

/// Returns whether a buffer is a Common Object File Format.
pub fn is_coff(buf: &[u8]) -> bool {
is_coff_x64(buf) || is_coff_i386(buf) ||is_coff_ia64(buf)
is_coff_x64(buf) || is_coff_i386(buf) || is_coff_ia64(buf)
}

0 comments on commit ff0851a

Please sign in to comment.