summaryrefslogtreecommitdiff
path: root/src/font.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-25 21:23:12 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-25 21:23:12 +0200
commitb6b6e3692404e32873892810bebeb1122f34c52e (patch)
treee619fb88b54faab717063c912e3e15f01aa5d743 /src/font.rs
parent30fdba4356683198a298eebb44e28cb8c191a0e1 (diff)
Replace static with const in two places
Diffstat (limited to 'src/font.rs')
-rw-r--r--src/font.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.rs b/src/font.rs
index 34ce6389..108ade10 100644
--- a/src/font.rs
+++ b/src/font.rs
@@ -259,7 +259,7 @@ impl Face {
// - The slices's location is stable in memory:
// - We don't move the underlying vector
// - Nobody else can move it since we have a strong ref to the `Arc`.
- // - The internal static lifetime is not leaked because its rewritten
+ // - The internal 'static lifetime is not leaked because its rewritten
// to the self-lifetime in `ttf()`.
let slice: &'static [u8] =
unsafe { std::slice::from_raw_parts(buffer.as_ptr(), buffer.len()) };