Skip to content

Commit

Permalink
Merge pull request rust-lang#196 from nlewycky/patch-1
Browse files Browse the repository at this point in the history
Fix typos.
  • Loading branch information
TheDan64 authored Jun 26, 2020
2 parents 8db9d6e + 9d7c0b8 commit 3f149c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ impl Drop for Context {
}
}

/// A `ContextRef` is a smart pointer allowing borrowed access to a a type's `Context`.
/// A `ContextRef` is a smart pointer allowing borrowed access to a type's `Context`.
#[derive(Debug, PartialEq, Eq)]
pub struct ContextRef<'ctx> {
context: ManuallyDrop<Context>,
Expand All @@ -912,7 +912,7 @@ impl<'ctx> ContextRef<'ctx> {
#[cfg(feature = "experimental")]
pub fn get(&self) -> &'ctx Context {
// Safety: Although strictly untrue that a local reference to the context field
// is guarenteed to live for the entirety of 'ctx:
// is guaranteed to live for the entirety of 'ctx:
// 1) ContextRef cannot outlive 'ctx
// 2) Any method called called with this context object will inherit 'ctx,
// which is its proper lifetime and does not point into this context object
Expand Down

0 comments on commit 3f149c7

Please sign in to comment.