Fix typos. (#689)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>,
|
||||
|
||||
@@ -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`]
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user