Skip to content

Commit 4c27ef8

Browse files
End doc sentences
1 parent 3e0114e commit 4c27ef8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Abstractions common to bare metal systems
1+
//! Abstractions common to bare metal systems.
22
33
#![deny(missing_docs)]
44
#![deny(warnings)]
@@ -7,16 +7,16 @@
77
use core::cell::UnsafeCell;
88
use core::marker::PhantomData;
99

10-
/// Critical section token
10+
/// Critical section token.
1111
///
12-
/// Indicates that you are executing code within a critical section
12+
/// Indicates that you are executing code within a critical section.
1313
#[derive(Clone, Copy)]
1414
pub struct CriticalSection<'cs> {
1515
_0: PhantomData<&'cs ()>,
1616
}
1717

1818
impl<'cs> CriticalSection<'cs> {
19-
/// Creates a critical section token
19+
/// Creates a critical section token.
2020
///
2121
/// This method is meant to be used to create safe abstractions rather than
2222
/// meant to be directly used in applications.
@@ -26,7 +26,7 @@ impl<'cs> CriticalSection<'cs> {
2626
}
2727
}
2828

29-
/// A "mutex" based on critical sections
29+
/// A "mutex" based on critical sections.
3030
///
3131
/// # Safety
3232
///
@@ -38,7 +38,7 @@ pub struct Mutex<T> {
3838
}
3939

4040
impl<T> Mutex<T> {
41-
/// Creates a new mutex
41+
/// Creates a new mutex.
4242
pub const fn new(value: T) -> Self {
4343
Mutex {
4444
inner: UnsafeCell::new(value),
@@ -47,7 +47,7 @@ impl<T> Mutex<T> {
4747
}
4848

4949
impl<T> Mutex<T> {
50-
/// Borrows the data for the duration of the critical section
50+
/// Borrows the data for the duration of the critical section.
5151
pub fn borrow<'cs>(&'cs self, _cs: CriticalSection<'cs>) -> &'cs T {
5252
unsafe { &*self.inner.get() }
5353
}
@@ -67,8 +67,8 @@ unsafe impl<T> Sync for Mutex<T> where T: Send {}
6767
#[allow(dead_code)]
6868
const GH_6: () = ();
6969

70-
/// Interrupt number
70+
/// Interrupt number.
7171
pub unsafe trait Nr {
72-
/// Returns the number associated with an interrupt
72+
/// Returns the number associated with an interrupt.
7373
fn nr(&self) -> u8;
7474
}

0 commit comments

Comments
 (0)