Skip to content

Commit 0b331f7

Browse files
committed
fix: comment problem desc
Changed desc comment to render Question.content instead of Question.t_content, which was empty.
1 parent c574b87 commit 0b331f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cache/models.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl Question {
151151
}
152152

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

156156
let mut res = desc.lines().fold("\n".to_string(), |acc, e| {
157157
acc + "" + conf.code.comment_leading.as_str() + " " + e + "\n"

0 commit comments

Comments
 (0)