Fix typos. (#689)

This commit is contained in:
Bruce Mitchener
2024-07-20 17:26:35 +07:00
committed by GitHub
parent 2847e06cf5
commit 31a92cd2fc
6 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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};
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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>,
@@ -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>,
+1 -1
View File
@@ -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`]
+1 -1
View File
@@ -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());