Skip to content

Commit b174332

Browse files
committed
1 parent 9a85566 commit b174332

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/libcollections/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

src/libcollections/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/libcollections/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

src/libcore/cell.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

src/libcore/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ pub fn mut_ref_slice<A>(s: &mut A) -> &mut [A] {
14301430
///
14311431
/// The `len` argument is the number of **elements**, not the number of bytes.
14321432
///
1433-
/// # Unsafety
1433+
/// # Safety
14341434
///
14351435
/// This function is unsafe as there is no guarantee that the given pointer is
14361436
/// valid for `len` elements, nor whether the lifetime inferred is a suitable

src/libcore/str/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/liblibc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)