Skip to content

Commit 3bbd43f

Browse files
committed
Update comments based on feedback.
1 parent 6824175 commit 3bbd43f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/char/rust_example.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ struct SharedState {
6767
impl SharedState {
6868
fn try_new() -> KernelResult<Arc<Self>> {
6969
let state = Arc::try_new(Self {
70-
// SAFETY: Init is called below.
70+
// SAFETY: `condvar_init!` is called below.
7171
state_changed: unsafe { CondVar::new() },
72-
// SAFETY: Init is called below.
72+
// SAFETY: `mutex_init!` is called below.
7373
inner: unsafe { Mutex::new(SharedStateInner { token_count: 0 }) },
7474
})?;
7575
// SAFETY: `state_changed` is pinned behind `Arc`.

0 commit comments

Comments
 (0)