Skip to content

Commit

Permalink
speeling
Browse files Browse the repository at this point in the history
  • Loading branch information
matsadler committed Feb 18, 2023
1 parent aae4917 commit e896b1d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ where

// Our regular implementation of `yield` breaks yielding methods being
// converted to Enumerators because of the protect call not being compatible
// with the fibers used in Ruby itself to impliment `Enumerator#next`.
// with the fibers used in Ruby itself to implement `Enumerator#next`.
// We have to use protect in `yield` because otherwise Ruby code can
// `break`/`return` through Rust code and break Rust invariants.
// This gives up using `protect` by instead using `ensure`, not exposing the
Expand Down
2 changes: 1 addition & 1 deletion src/into_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub trait IntoValue: Sized {
///
/// # Safety
///
/// This trait must not be implimented for types that contain `Value`.
/// This trait must not be implemented for types that contain `Value`.
pub unsafe trait IntoValueFromNative: IntoValue {}

/// Trait for types that can be used as an arguments list when calling Ruby
Expand Down
8 changes: 4 additions & 4 deletions src/numeric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::{
pub trait Numeric: Deref<Target = Value> + ReprValue + Copy {
/// Apply the operator `op` with coercion.
///
/// As Ruby's operators are implimented as methods, this function can be
/// As Ruby's operators are implemented as methods, this function can be
/// thought of as a specialised version of [`Value::funcall`], just for
/// subclasses of `Numeric`, and that follows Ruby's coercion protocol.
///
Expand Down Expand Up @@ -74,7 +74,7 @@ pub trait Numeric: Deref<Target = Value> + ReprValue + Copy {

/// Apply the operator `op` with coercion.
///
/// As Ruby's operators are implimented as methods, this function can be
/// As Ruby's operators are implemented as methods, this function can be
/// thought of as a specialised version of [`Value::funcall`], just for
/// subclasses of `Numeric`, and that follows Ruby's coercion protocol.
///
Expand Down Expand Up @@ -119,7 +119,7 @@ pub trait Numeric: Deref<Target = Value> + ReprValue + Copy {

/// Apply the operator `op` with coercion.
///
/// As Ruby's operators are implimented as methods, this function can be
/// As Ruby's operators are implemented as methods, this function can be
/// thought of as a specialised version of [`Value::funcall`], just for
/// subclasses of `Numeric`, and that follows Ruby's coercion protocol.
///
Expand Down Expand Up @@ -161,7 +161,7 @@ pub trait Numeric: Deref<Target = Value> + ReprValue + Copy {

/// Apply the operator `op` with coercion.
///
/// As Ruby's operators are implimented as methods, this function can be
/// As Ruby's operators are implemented as methods, this function can be
/// thought of as a specialised version of [`Value::funcall`], just for
/// subclasses of `Numeric`, and that follows Ruby's coercion protocol.
///
Expand Down
10 changes: 5 additions & 5 deletions src/scan_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ mod private {
/// This trait is implemented for `(T0,)`, `(T0, T1)`, `(T0, T1, T2)`, etc,
/// through to a length of 9, where `T0`, `T1`, etc implement [`TryConvert`].
///
/// `()` also impliments this trait as a placeholder indicating no required
/// `()` also implements this trait as a placeholder indicating no required
/// arguments are required.
pub trait ScanArgsRequired: private::ScanArgsRequired {}
impl<T> ScanArgsRequired for T where T: private::ScanArgsRequired {}
Expand All @@ -1046,7 +1046,7 @@ impl<T> ScanArgsRequired for T where T: private::ScanArgsRequired {}
/// etc, through to a length of 9, where `T0`, `T1`, etc implement
/// [`TryConvert`].
///
/// `()` also impliments this trait as a placeholder indicating no optional
/// `()` also implements this trait as a placeholder indicating no optional
/// arguments are required.
pub trait ScanArgsOpt: private::ScanArgsOpt {}
impl<T> ScanArgsOpt for T where T: private::ScanArgsOpt {}
Expand All @@ -1058,7 +1058,7 @@ impl<T> ScanArgsOpt for T where T: private::ScanArgsOpt {}
/// and converts to an owned Rust value (not a handle to a Ruby object). It is
/// also implemented for [`RArray`].
///
/// `()` also impliments this trait as a placeholder indicating no splat
/// `()` also implements this trait as a placeholder indicating no splat
/// argument is required.
pub trait ScanArgsSplat: private::ScanArgsSplat {}
impl<T> ScanArgsSplat for T where T: private::ScanArgsSplat {}
Expand All @@ -1068,7 +1068,7 @@ impl<T> ScanArgsSplat for T where T: private::ScanArgsSplat {}
///
/// This trait is implemented for [`RHash`].
///
/// `()` also impliments this trait as a placeholder indicating no keyword
/// `()` also implements this trait as a placeholder indicating no keyword
/// arguments are required.
pub trait ScanArgsKw: private::ScanArgsKw {}
impl<T> ScanArgsKw for T where T: private::ScanArgsKw {}
Expand All @@ -1078,7 +1078,7 @@ impl<T> ScanArgsKw for T where T: private::ScanArgsKw {}
///
/// This trait is implemented for [`Proc`] and `Option<Proc>`.
///
/// `()` also impliments this trait as a placeholder for when no block argument
/// `()` also implements this trait as a placeholder for when no block argument
/// is required, although Ruby will still allow a block to be passed, it will
/// just ignore it (as is standard for all Ruby methods).
pub trait ScanArgsBlock: private::ScanArgsBlock {}
Expand Down
4 changes: 2 additions & 2 deletions src/typed_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ where
///
/// # Safety
///
/// This trait is unsafe to impliment as the fields of [`DataType`] returned by
/// This trait is unsafe to implement as the fields of [`DataType`] returned by
/// [`TypedData::data_type`] control low level behaviour that can go very wrong
/// if set incorrectly. Implimenting this trait is the only way a [`DataType`]
/// if set incorrectly. Implementing this trait is the only way a [`DataType`]
/// can be passed to Ruby and result in safety violations, [`DataType`] is
/// otherwise safe (but useless) to create.
///
Expand Down
2 changes: 1 addition & 1 deletion src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ impl Qundef {
/// It is not a good idea to return this to Ruby code, bad things will
/// happen. There are only a handful of places in Ruby's API where it is
/// appropriate to pass a [`Value`] created from `Qundef` (hence this
/// method, rather than implimenting [`IntoValue`]).
/// method, rather than implementing [`IntoValue`]).
#[inline]
pub unsafe fn to_value(self) -> Value {
self.0.get()
Expand Down

0 comments on commit e896b1d

Please sign in to comment.