Skip to content

Commit 3f149c7

Browse files
authored
Merge pull request rust-lang#196 from nlewycky/patch-1
Fix typos.
2 parents 8db9d6e + 9d7c0b8 commit 3f149c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/context.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ impl Drop for Context {
893893
}
894894
}
895895

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

0 commit comments

Comments
 (0)