Skip to content

Commit 31a92cd

Browse files
Fix typos. (#689)
1 parent 2847e06 commit 31a92cd

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

cocoa-foundation/src/foundation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ pub trait NSDictionary: Sized {
339339
unsafe fn init(self) -> id;
340340
unsafe fn initWithContentsOfFile_(self, path: id) -> id;
341341
unsafe fn initWithContentsOfURL_(self, aURL: id) -> id;
342-
unsafe fn initWithDictionary_(self, otherDicitonary: id) -> id;
343-
unsafe fn initWithDictionary_copyItems_(self, otherDicitonary: id, flag: BOOL) -> id;
342+
unsafe fn initWithDictionary_(self, otherDictionary: id) -> id;
343+
unsafe fn initWithDictionary_copyItems_(self, otherDictionary: id, flag: BOOL) -> id;
344344
unsafe fn initWithObjects_forKeys_(self, objects: id, keys: id) -> id;
345345
unsafe fn initWithObjects_forKeys_count_(self, objects: id, keys: id, count: NSUInteger) -> id;
346346
unsafe fn initWithObjectsAndKeys_(self, firstObject: id) -> id;

core-foundation/src/bundle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fn safari_private_frameworks_url() {
189189
}
190190

191191
#[test]
192-
fn non_existant_bundle() {
192+
fn non_existent_bundle() {
193193
use crate::string::CFString;
194194
use crate::url::{kCFURLPOSIXPathStyle, CFURL};
195195

core-foundation/src/characterset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub use core_foundation_sys::characterset::*;
1414
use crate::base::TCFType;
1515

1616
declare_TCFType! {
17-
/// An immutable set of Unicde characters.
17+
/// An immutable set of Unicode characters.
1818
CFCharacterSet, CFCharacterSetRef
1919
}
2020
impl_TCFType!(CFCharacterSet, CFCharacterSetRef, CFCharacterSetGetTypeID);

core-foundation/src/dictionary.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::base::{CFIndexConvertible, TCFType};
2121
use crate::base::{FromVoid, ItemRef, ToVoid};
2222
use crate::ConcreteCFType;
2323

24-
// consume the type parameters with PhantomDatas
24+
// consume the type parameters with `PhantomData`
2525
pub struct CFDictionary<K = *const c_void, V = *const c_void>(
2626
CFDictionaryRef,
2727
PhantomData<K>,
@@ -148,7 +148,7 @@ impl<K, V> CFDictionary<K, V> {
148148
}
149149
}
150150

151-
// consume the type parameters with PhantomDatas
151+
// consume the type parameters with `PhantomData`
152152
pub struct CFMutableDictionary<K = *const c_void, V = *const c_void>(
153153
CFMutableDictionaryRef,
154154
PhantomData<K>,

core-graphics/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl CGContext {
123123

124124
/// Creates a `CGContext` instance from an existing [`CGContextRef`] pointer.
125125
///
126-
/// This funtion will internally call [`CGRetain`] and hence there is no need to call it explicitly.
126+
/// This function will internally call [`CGRetain`] and hence there is no need to call it explicitly.
127127
///
128128
/// This function is particularly useful for cases when the context is not instantiated/managed
129129
/// by the caller, but it's retrieve via other means (e.g., by calling the method [`NSGraphicsContext::CGContext`]

core-text/src/font.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ fn copy_system_font() {
884884
let ps = small.postscript_name();
885885
let desc = small.copy_descriptor();
886886

887-
// check that we can construct a new vesion by descriptor
887+
// check that we can construct a new version by descriptor
888888
let ctfont = new_from_descriptor(&desc, 20.);
889889
assert_eq!(big.postscript_name(), ctfont.postscript_name());
890890

0 commit comments

Comments
 (0)