We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ce7b2 commit 5bc9884Copy full SHA for 5bc9884
src/codecs/ico/decoder.rs
@@ -195,7 +195,7 @@ fn read_entry<R: Read>(r: &mut R) -> ImageResult<DirEntry> {
195
/// If two entries have the same color depth and size, pick the first one.
196
/// While ICO files with multiple identical size and bpp entries are rare, they
197
/// do exist. Since we can't make an educated guess which one is best, picking
198
-/// the first one is a sane default.
+/// the first one is a reasonable default.
199
fn best_entry(entries: Vec<DirEntry>) -> ImageResult<DirEntry> {
200
let mut best = *entries.first().ok_or(DecoderError::NoEntries)?;
201
let mut best_score = (0, 0);
0 commit comments