From 44e1fe2fff7d412f27f50bac3414e69bde1e4159 Mon Sep 17 00:00:00 2001 From: Smitty Date: Fri, 28 May 2021 12:52:10 -0400 Subject: [PATCH] Better documentation for Text --- src/text.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/text.rs b/src/text.rs index 06e6d80..289500a 100644 --- a/src/text.rs +++ b/src/text.rs @@ -7,6 +7,8 @@ pub struct Lang(pub String); /// Text that is in a certain language. #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)] pub struct Text { + /// The raw text. pub text: String, + /// The language of the text. pub lang: Lang, }