diff --git a/cocoa-foundation/src/foundation.rs b/cocoa-foundation/src/foundation.rs index 760b6b0..6558ec9 100644 --- a/cocoa-foundation/src/foundation.rs +++ b/cocoa-foundation/src/foundation.rs @@ -339,8 +339,8 @@ pub trait NSDictionary: Sized { unsafe fn init(self) -> id; unsafe fn initWithContentsOfFile_(self, path: id) -> id; unsafe fn initWithContentsOfURL_(self, aURL: id) -> id; - unsafe fn initWithDictionary_(self, otherDicitonary: id) -> id; - unsafe fn initWithDictionary_copyItems_(self, otherDicitonary: id, flag: BOOL) -> id; + unsafe fn initWithDictionary_(self, otherDictionary: id) -> id; + unsafe fn initWithDictionary_copyItems_(self, otherDictionary: id, flag: BOOL) -> id; unsafe fn initWithObjects_forKeys_(self, objects: id, keys: id) -> id; unsafe fn initWithObjects_forKeys_count_(self, objects: id, keys: id, count: NSUInteger) -> id; unsafe fn initWithObjectsAndKeys_(self, firstObject: id) -> id; diff --git a/core-foundation/src/bundle.rs b/core-foundation/src/bundle.rs index f6d53a9..0249470 100644 --- a/core-foundation/src/bundle.rs +++ b/core-foundation/src/bundle.rs @@ -189,7 +189,7 @@ fn safari_private_frameworks_url() { } #[test] -fn non_existant_bundle() { +fn non_existent_bundle() { use crate::string::CFString; use crate::url::{kCFURLPOSIXPathStyle, CFURL}; diff --git a/core-foundation/src/characterset.rs b/core-foundation/src/characterset.rs index 2a05a93..c10a0bd 100644 --- a/core-foundation/src/characterset.rs +++ b/core-foundation/src/characterset.rs @@ -14,7 +14,7 @@ pub use core_foundation_sys::characterset::*; use crate::base::TCFType; declare_TCFType! { - /// An immutable set of Unicde characters. + /// An immutable set of Unicode characters. CFCharacterSet, CFCharacterSetRef } impl_TCFType!(CFCharacterSet, CFCharacterSetRef, CFCharacterSetGetTypeID); diff --git a/core-foundation/src/dictionary.rs b/core-foundation/src/dictionary.rs index aad37f3..d5e8cbb 100644 --- a/core-foundation/src/dictionary.rs +++ b/core-foundation/src/dictionary.rs @@ -21,7 +21,7 @@ use crate::base::{CFIndexConvertible, TCFType}; use crate::base::{FromVoid, ItemRef, ToVoid}; use crate::ConcreteCFType; -// consume the type parameters with PhantomDatas +// consume the type parameters with `PhantomData` pub struct CFDictionary( CFDictionaryRef, PhantomData, @@ -148,7 +148,7 @@ impl CFDictionary { } } -// consume the type parameters with PhantomDatas +// consume the type parameters with `PhantomData` pub struct CFMutableDictionary( CFMutableDictionaryRef, PhantomData, diff --git a/core-graphics/src/context.rs b/core-graphics/src/context.rs index db36b5a..b7bc937 100644 --- a/core-graphics/src/context.rs +++ b/core-graphics/src/context.rs @@ -123,7 +123,7 @@ impl CGContext { /// Creates a `CGContext` instance from an existing [`CGContextRef`] pointer. /// - /// This funtion will internally call [`CGRetain`] and hence there is no need to call it explicitly. + /// This function will internally call [`CGRetain`] and hence there is no need to call it explicitly. /// /// This function is particularly useful for cases when the context is not instantiated/managed /// by the caller, but it's retrieve via other means (e.g., by calling the method [`NSGraphicsContext::CGContext`] diff --git a/core-text/src/font.rs b/core-text/src/font.rs index 01c8a7e..619ebd3 100644 --- a/core-text/src/font.rs +++ b/core-text/src/font.rs @@ -884,7 +884,7 @@ fn copy_system_font() { let ps = small.postscript_name(); let desc = small.copy_descriptor(); - // check that we can construct a new vesion by descriptor + // check that we can construct a new version by descriptor let ctfont = new_from_descriptor(&desc, 20.); assert_eq!(big.postscript_name(), ctfont.postscript_name());