about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorhman523 <shbarbella@gmail.com>2019-09-09 20:09:17 -0500
committerGitHub <noreply@github.com>2019-09-09 20:09:17 -0500
commit9b1456e4c5ebae855278ca6f5618915d6c7ad37e (patch)
treedacac8543c08b315792d0f2f52d7d29c56ee3b12 /src/libstd
parentbdfab2049ce6bf67cb8557017d148960c534eb61 (diff)
downloadrust-9b1456e4c5ebae855278ca6f5618915d6c7ad37e.tar.gz
rust-9b1456e4c5ebae855278ca6f5618915d6c7ad37e.zip
Update added backticks around a function call
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/ffi/c_str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index 29d86e7146e..bb346fb4db5 100644
--- a/src/libstd/ffi/c_str.rs
+++ b/src/libstd/ffi/c_str.rs
@@ -937,7 +937,7 @@ impl CStr {
     /// This function will wrap the provided `ptr` with a `CStr` wrapper, which
     /// allows inspection and interoperation of non-owned C strings. The total
     /// size of the raw C string must be smaller than `isize::MAX` **bytes**
-    /// in memory due to calling the slice::from_raw_parts function.
+    /// in memory due to calling the `slice::from_raw_parts` function.
     /// This method is unsafe for a number of reasons:
     ///
     /// * There is no guarantee to the validity of `ptr`.