aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/codes.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-07 18:49:00 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-07 18:49:00 +0200
commitfdb1f1694f44cfbc59d303a10371300b48d74627 (patch)
tree837fe930a9d4c61336a2793e4c9893c074624d9c /src/util/codes.rs
parent5c1b428c5a14731e00c9b45c534059f1057319e2 (diff)
downloadmarkdown-rs-fdb1f1694f44cfbc59d303a10371300b48d74627.tar.gz
markdown-rs-fdb1f1694f44cfbc59d303a10371300b48d74627.tar.bz2
markdown-rs-fdb1f1694f44cfbc59d303a10371300b48d74627.zip
Refactor to use `char::REPLACEMENT_CHARACTER`
Diffstat (limited to '')
-rw-r--r--src/util/codes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/codes.rs b/src/util/codes.rs
index 8a46d02..9b6ad39 100644
--- a/src/util/codes.rs
+++ b/src/util/codes.rs
@@ -35,7 +35,7 @@ pub fn parse(value: &str) -> Vec<Code> {
// Send a replacement character.
'\0' => {
column += 1;
- codes.push(Code::Char('�'));
+ codes.push(Code::Char(char::REPLACEMENT_CHARACTER));
}
// Send a tab and virtual spaces.
'\t' => {