Skip to content

Commit 4cf76db

Browse files
committed
support chinese question description
Signed-off-by: Marukohe <weihe1999@outlook.com>
1 parent 75b595a commit 4cf76db

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug leetcode-cli",
6+
"type": "lldb",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/target/debug/leetcode",
9+
"args": ["pick", "1"],
10+
"cwd": "${workspaceFolder}",
11+
"stopOnEntry": false
12+
}
13+
]
14+
}

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cache/models.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ pub struct Question {
162162

163163
impl Question {
164164
pub fn desc(&self) -> String {
165-
self.content.render()
165+
self.t_content.render()
166166
}
167167

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

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

0 commit comments

Comments
 (0)