File tree 7 files changed +9
-9
lines changed
7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ impl str {
254
254
///
255
255
/// Returns the substring from [`begin`..`end`).
256
256
///
257
- /// # Unsafety
257
+ /// # Safety
258
258
///
259
259
/// Caller must check both UTF-8 sequence boundaries and the boundaries
260
260
/// of the entire slice as well.
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ impl String {
361
361
362
362
/// Creates a new `String` from a length, capacity, and pointer.
363
363
///
364
- /// # Unsafety
364
+ /// # Safety
365
365
///
366
366
/// This is _very_ unsafe because:
367
367
///
@@ -385,7 +385,7 @@ impl String {
385
385
///
386
386
/// [fromutf8]: struct.String.html#method.from_utf8
387
387
///
388
- /// # Unsafety
388
+ /// # Safety
389
389
///
390
390
/// This function is unsafe because it does not check that the bytes passed to
391
391
/// 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> {
284
284
285
285
/// Creates a `Vec<T>` directly from the raw components of another vector.
286
286
///
287
- /// # Unsafety
287
+ /// # Safety
288
288
///
289
289
/// This is highly unsafe, due to the number of invariants that aren't
290
290
/// checked:
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ impl<T:Copy> Cell<T> {
214
214
215
215
/// Returns a reference to the underlying `UnsafeCell`.
216
216
///
217
- /// # Unsafety
217
+ /// # Safety
218
218
///
219
219
/// This function is `unsafe` because `UnsafeCell`'s field is public.
220
220
///
@@ -813,7 +813,7 @@ impl<T> UnsafeCell<T> {
813
813
814
814
/// Unwraps the value.
815
815
///
816
- /// # Unsafety
816
+ /// # Safety
817
817
///
818
818
/// This function is unsafe because this thread or another thread may currently be
819
819
/// 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] {
1435
1435
///
1436
1436
/// The `len` argument is the number of **elements**, not the number of bytes.
1437
1437
///
1438
- /// # Unsafety
1438
+ /// # Safety
1439
1439
///
1440
1440
/// This function is unsafe as there is no guarantee that the given pointer is
1441
1441
/// 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> {
247
247
///
248
248
/// [fromutf8]: fn.from_utf8.html
249
249
///
250
- /// # Unsafety
250
+ /// # Safety
251
251
///
252
252
/// This function is unsafe because it does not check that the bytes passed to
253
253
/// 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 {
6163
6163
6164
6164
/// Exits the running program in a possibly dangerous manner.
6165
6165
///
6166
- /// # Unsafety
6166
+ /// # Safety
6167
6167
///
6168
6168
/// While this forces your program to exit, it does so in a way that has
6169
6169
/// consequences. This will skip all unwinding code, which means that anything
You can’t perform that action at this time.
0 commit comments