mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
delimit variables in docstrings to make them easier to read
This commit is contained in:
parent
e687552aeb
commit
3199fa80d5
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ impl Visitor {
|
||||||
fn visit_inline_expression(&mut self, expr: &InlineExpression<&str>) {
|
fn visit_inline_expression(&mut self, expr: &InlineExpression<&str>) {
|
||||||
match expr {
|
match expr {
|
||||||
InlineExpression::VariableReference { id } => {
|
InlineExpression::VariableReference { id } => {
|
||||||
write!(self.text, "${}", id.name).unwrap();
|
write!(self.text, "{{${}}}", id.name).unwrap();
|
||||||
self.variables.insert(id.name.to_string());
|
self.variables.insert(id.name.to_string());
|
||||||
}
|
}
|
||||||
InlineExpression::Placeable { expression } => {
|
InlineExpression::Placeable { expression } => {
|
||||||
|
|
Loading…
Reference in a new issue