Skip to content

Commit

Permalink
Fix typos. (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Jul 20, 2024
1 parent 2847e06 commit 31a92cd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cocoa-foundation/src/foundation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion core-foundation/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down
2 changes: 1 addition & 1 deletion core-foundation/src/characterset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions core-foundation/src/dictionary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<K = *const c_void, V = *const c_void>(
CFDictionaryRef,
PhantomData<K>,
Expand Down Expand Up @@ -148,7 +148,7 @@ impl<K, V> CFDictionary<K, V> {
}
}

// consume the type parameters with PhantomDatas
// consume the type parameters with `PhantomData`
pub struct CFMutableDictionary<K = *const c_void, V = *const c_void>(
CFMutableDictionaryRef,
PhantomData<K>,
Expand Down
2 changes: 1 addition & 1 deletion core-graphics/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`]
Expand Down
2 changes: 1 addition & 1 deletion core-text/src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 31a92cd

Please sign in to comment.