| author | holly sparkles <sparkles@holly.sh> | 2024-01-14 9:53:28.0 +00:00:00 |
|---|---|---|
| committer | holly sparkles <sparkles@holly.sh> | 2024-01-14 9:55:33.0 +00:00:00 |
| commit | 7c752c4af486fca3db7b2e5c4f6b17b2b7aa730e [patch] |
|
| tree | 45bd8181211b6dfc52f2a4c66dc8f99b468d8a8b |
|
| parent | a00fc5493ef4b504ed1c87b3ffae60907cc9e16e |
|
| download | 7c752c4af486fca3db7b2e5c4f6b17b2b7aa730e.tar.gz |
|
chore(tests): update doctests
Diff
src/core/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/mod.rs b/src/core/mod.rs index 694447b..45502e8 100644 /// /// let languages = LanguageDefinitions { /// items: vec![ /// LanguageDefinition { name: "Rust".to_string(), extension: "rs".to_string() }, /// LanguageDefinition { name: "Rust".into(), extension: "rs".into() }, /// LanguageDefinition::new("Markdown", "md"), /// ], /// }; /// ``` /// use smolguess::core::LanguageDefinition; /// /// let definition = LanguageDefinition { name: "Rust".to_string(), extension: "rs".to_string() }; /// let definition = LanguageDefinition { name: "Rust".into(), extension: "rs".into() }; /// /// assert_eq!((definition.name.as_str(), definition.extension.as_str()), ("Rust", "rs")); /// ```