Skip to content

Commit ac1ed90

Browse files
committed
fix(signum): fourcc doctest
1 parent af4ac35 commit ac1ed90

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/signum/src/util/four_cc.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ impl FourCC {
5858
Self(buf)
5959
}
6060

61-
/// Return a human readable name of the file format identified by this four-character-code
61+
/// Return the Signum 1 file format identified by this four-character-code, if any
6262
///
6363
/// ```
6464
/// # use signum::util::FourCC;
65-
/// assert_eq!(FourCC::SDOC.file_format_name(), Some("Signum! Document"));
65+
/// # use signum::util::Signum1Format;
66+
/// assert_eq!(FourCC::SDOC.file_format(), Some(Signum1Format::Document));
6667
/// ```
6768
///
6869
/// Returns `None` if the format is unknown

0 commit comments

Comments
 (0)