File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ impl str {
254254 ///
255255 /// Returns the substring from [`begin`..`end`).
256256 ///
257- /// # Unsafety
257+ /// # Safety
258258 ///
259259 /// Caller must check both UTF-8 sequence boundaries and the boundaries
260260 /// of the entire slice as well.
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ impl String {
361361
362362 /// Creates a new `String` from a length, capacity, and pointer.
363363 ///
364- /// # Unsafety
364+ /// # Safety
365365 ///
366366 /// This is _very_ unsafe because:
367367 ///
@@ -385,7 +385,7 @@ impl String {
385385 ///
386386 /// [fromutf8]: struct.String.html#method.from_utf8
387387 ///
388- /// # Unsafety
388+ /// # Safety
389389 ///
390390 /// This function is unsafe because it does not check that the bytes passed to
391391 /// it are valid UTF-8. If this constraint is violated, undefined behavior
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ impl<T> Vec<T> {
284284
285285 /// Creates a `Vec<T>` directly from the raw components of another vector.
286286 ///
287- /// # Unsafety
287+ /// # Safety
288288 ///
289289 /// This is highly unsafe, due to the number of invariants that aren't
290290 /// checked:
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ impl<T:Copy> Cell<T> {
214214
215215 /// Returns a reference to the underlying `UnsafeCell`.
216216 ///
217- /// # Unsafety
217+ /// # Safety
218218 ///
219219 /// This function is `unsafe` because `UnsafeCell`'s field is public.
220220 ///
@@ -813,7 +813,7 @@ impl<T> UnsafeCell<T> {
813813
814814 /// Unwraps the value.
815815 ///
816- /// # Unsafety
816+ /// # Safety
817817 ///
818818 /// This function is unsafe because this thread or another thread may currently be
819819 /// inspecting the inner value.
Original file line number Diff line number Diff line change @@ -1435,7 +1435,7 @@ pub fn mut_ref_slice<A>(s: &mut A) -> &mut [A] {
14351435///
14361436/// The `len` argument is the number of **elements**, not the number of bytes.
14371437///
1438- /// # Unsafety
1438+ /// # Safety
14391439///
14401440/// This function is unsafe as there is no guarantee that the given pointer is
14411441/// valid for `len` elements, nor whether the lifetime inferred is a suitable
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ pub fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
247247///
248248/// [fromutf8]: fn.from_utf8.html
249249///
250- /// # Unsafety
250+ /// # Safety
251251///
252252/// This function is unsafe because it does not check that the bytes passed to
253253/// it are valid UTF-8. If this constraint is violated, undefined behavior
Original file line number Diff line number Diff line change @@ -6163,7 +6163,7 @@ pub mod funcs {
61636163
61646164 /// Exits the running program in a possibly dangerous manner.
61656165 ///
6166- /// # Unsafety
6166+ /// # Safety
61676167 ///
61686168 /// While this forces your program to exit, it does so in a way that has
61696169 /// consequences. This will skip all unwinding code, which means that anything
You can’t perform that action at this time.
0 commit comments