Skip to content

Commit 173bf96

Browse files
committed
feat: use translatedContent instead of content
1 parent a209efa commit 173bf96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cache/models.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ impl Question {
151151
}
152152

153153
pub fn desc_comment(&self, conf: &Config) -> String {
154-
let desc = self.content.render();
154+
let desc = self.t_content.render();
155155

156156
let mut res = desc.lines().fold("\n".to_string(), |acc, e| {
157-
acc + " " + conf.code.comment_leading.as_str() + " " + e + "\n"
157+
acc + "" + conf.code.comment_leading.as_str() + " " + e + "\n"
158158
});
159159
res += " \n";
160160

0 commit comments

Comments
 (0)