Skip to content

Commit 6dba902

Browse files
committed
Cleanup whitespace
1 parent d5bb7db commit 6dba902

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

text/0000-unsafe-extern-blocks.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
- Feature Name: `unsafe_extern`
32
- Start Date: 2023-05-23
43
- RFC PR: [rust-lang/rfcs#0000](https://github.com/rust-lang/rfcs/pull/0000)
@@ -43,16 +42,16 @@ Code must update to `unsafe extern` style blocks if it wants to make `safe` decl
4342
unsafe extern {
4443
// sqrt (from libm) can be called with any `f64`
4544
pub safe fn sqrt(x: f64) -> f64;
46-
45+
4746
// strlen (from libc) requires a valid pointer,
4847
// so we mark it as being an unsafe fn
4948
pub unsafe fn strlen(p: *const c_char) -> usize;
5049

5150
// this function doesn't say safe or unsafe, so it defaults to unsafe
5251
pub fn free(p: *mut core::ffi::c_void);
53-
52+
5453
pub safe static IMPORTANT_BYTES: [u8; 256];
55-
54+
5655
pub safe static LINES: SyncUnsafeCell<i32>;
5756
}
5857
```

0 commit comments

Comments
 (0)