about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-01-13 10:42:34 +0100
committerGitHub <noreply@github.com>2017-01-13 10:42:34 +0100
commita861eb0aac22dc149fdace5d6e095160ae3efe01 (patch)
treeb7574c487d566d2696109199d5844a5f20cd097e
parent5d03288e956a2f23cf6dd5d4d59ab95e7b3b73c2 (diff)
parent6022aeb9ab93a6584a5408c9547ada31f8faf59a (diff)
downloadrust-a861eb0aac22dc149fdace5d6e095160ae3efe01.tar.gz
rust-a861eb0aac22dc149fdace5d6e095160ae3efe01.zip
Rollup merge of #39027 - behnam:typo, r=frewsxcv
[libcollections] [doc] Fix typo in documentation

Replace two instances of `an raw` with `a raw` in documentation blocks.
-rw-r--r--src/doc/book/ffi.md2
-rw-r--r--src/libcollections/slice.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/ffi.md b/src/doc/book/ffi.md
index 41457ee67a5..50d4d0170fc 100644
--- a/src/doc/book/ffi.md
+++ b/src/doc/book/ffi.md
@@ -309,7 +309,7 @@ However it is often desired that the callback is targeted to a special
 Rust object. This could be the object that represents the wrapper for the
 respective C object.
 
-This can be achieved by passing an raw pointer to the object down to the
+This can be achieved by passing a raw pointer to the object down to the
 C library. The C library can then include the pointer to the Rust object in
 the notification. This will allow the callback to unsafely access the
 referenced Rust object.
diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs
index b5e66692205..805021516db 100644
--- a/src/libcollections/slice.rs
+++ b/src/libcollections/slice.rs
@@ -423,7 +423,7 @@ impl<T> [T] {
         core_slice::SliceExt::get_unchecked_mut(self, index)
     }
 
-    /// Returns an raw pointer to the slice's buffer.
+    /// Returns a raw pointer to the slice's buffer.
     ///
     /// The caller must ensure that the slice outlives the pointer this
     /// function returns, or else it will end up pointing to garbage.