summaryrefslogtreecommitdiff
path: root/pygments/lexers/rust.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/rust.py')
-rw-r--r--pygments/lexers/rust.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/rust.py b/pygments/lexers/rust.py
index 89be6963..f731785f 100644
--- a/pygments/lexers/rust.py
+++ b/pygments/lexers/rust.py
@@ -59,7 +59,7 @@ class RustLexer(RegexLexer):
tokens = {
'root': [
# rust allows a file to start with a shebang, but if the first line
- # starts with #![ then it’s not a shebang but a crate attribute.
+ # starts with #![ then it's not a shebang but a crate attribute.
(r'#![^[\r\n].*$', Comment.Preproc),
default('base'),
],
@@ -95,7 +95,7 @@ class RustLexer(RegexLexer):
(r'(default)(\s+)(type|fn)\b', bygroups(Keyword, Text, Keyword)),
keyword_types,
(r'self\b', Name.Builtin.Pseudo),
- # Prelude (taken from Rust’s src/libstd/prelude.rs)
+ # Prelude (taken from Rust's src/libstd/prelude.rs)
builtin_types,
# Path seperators, so types don't catch them.
(r'::\b', Text),