You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-adler/0001-fix-endianness-in-doct...

16 lines
450 B

diff --git a/src/lib.rs b/src/lib.rs
index 154426b..ff9d4fe 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,7 +70,10 @@ use std::io::{self, BufRead};
/// let data = Data { byte: 0x1F, word: 0xABCD, big: !0 };
/// data.hash(&mut adler);
///
+/// #[cfg(target_endian = "little")]
/// assert_eq!(adler.checksum(), 0x33410990);
+/// #[cfg(target_endian = "big")]
+/// assert_eq!(adler.checksum(), 0x331F0990);
/// ```
///
/// [`new`]: #method.new