diff options
author | Martin Lindhe <martin-commit@ubique.se> | 2017-10-30 15:19:23 +0100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-10-30 09:25:13 -0700 |
commit | f646f6c9f8b04d7c880920941eccce699fba6b04 (patch) | |
tree | 836e87e687e8d7943de3e86ca34f12fb25834773 | |
parent | 7c4e84c695cc54ca1d7089a91a97ce2617010205 (diff) | |
download | alacritty-f646f6c9f8b04d7c880920941eccce699fba6b04.tar.gz alacritty-f646f6c9f8b04d7c880920941eccce699fba6b04.zip |
config_subsitute(): fix typo by renaming to config_substitute()
-rw-r--r-- | font/src/ft/fc/mod.rs | 6 | ||||
-rw-r--r-- | font/src/ft/fc/pattern.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/font/src/ft/fc/mod.rs b/font/src/ft/fc/mod.rs index f6d7d64a..ac0c9442 100644 --- a/font/src/ft/fc/mod.rs +++ b/font/src/ft/fc/mod.rs @@ -50,7 +50,7 @@ pub fn font_match( config: &ConfigRef, pattern: &mut PatternRef, ) -> Option<Pattern> { - pattern.config_subsitute(config, MatchKind::Pattern); + pattern.config_substitute(config, MatchKind::Pattern); pattern.default_substitute(); unsafe { @@ -77,7 +77,7 @@ pub fn font_sort( config: &ConfigRef, pattern: &mut PatternRef, ) -> Option<FontSet> { - pattern.config_subsitute(config, MatchKind::Pattern); + pattern.config_substitute(config, MatchKind::Pattern); pattern.default_substitute(); unsafe { @@ -110,7 +110,7 @@ pub fn font_list( pattern: &mut PatternRef, objects: &ObjectSetRef, ) -> Option<FontSet> { - pattern.config_subsitute(config, MatchKind::Pattern); + pattern.config_substitute(config, MatchKind::Pattern); pattern.default_substitute(); unsafe { diff --git a/font/src/ft/fc/pattern.rs b/font/src/ft/fc/pattern.rs index e3c5261f..88cf37be 100644 --- a/font/src/ft/fc/pattern.rs +++ b/font/src/ft/fc/pattern.rs @@ -604,7 +604,7 @@ impl PatternRef { index() => b"index\0" } - pub fn config_subsitute(&mut self, config: &ConfigRef, kind: MatchKind) { + pub fn config_substitute(&mut self, config: &ConfigRef, kind: MatchKind) { unsafe { FcConfigSubstitute(config.as_ptr(), self.as_ptr(), kind as u32); } |