@@ -18,12 +18,12 @@ impl<T> CriticalSectionCell<T> {
1818 /// for read/write conditions but does not automatically handle logical data
1919 /// race conditions. It is still possible for a user to read a value but have
2020 /// it change after they've performed the read. This just ensures data integrity:
21- /// CriticalSectionCell<T> will always contain a valid T , even if it's been read "late"
21+ /// ` CriticalSectionCell<T>` will always contain a valid `T` , even if it's been read "late"
2222 pub fn set ( & self , value : T ) {
2323 critical_section:: with ( |_cs| self . inner . set ( value) )
2424 }
2525
26- /// Swap contents between two CriticalSectionCell's
26+ /// Swap contents between two CriticalSectionCell's
2727 /// # Panics
2828 ///
2929 /// This function will panic if `self` and `other` are different `Cell`s that partially overlap.
@@ -33,7 +33,7 @@ impl<T> CriticalSectionCell<T> {
3333 critical_section:: with ( |_cs| self . inner . swap ( & other. inner ) ) ;
3434 }
3535
36- /// consume the CriticalSectionCell and return the inner value T
36+ /// consume the ` CriticalSectionCell` and return the inner value `T`
3737 pub fn into_inner ( self ) -> T {
3838 self . inner . into_inner ( )
3939 }
@@ -58,13 +58,13 @@ impl<T: ?Sized> CriticalSectionCell<T> {
5858}
5959
6060impl < T : Default > CriticalSectionCell < T > {
61- /// consume the inner T , returning its value and replacing it with default()
61+ /// consume the inner `T` , returning its value and replacing it with `Default:: default()`
6262 pub fn take ( & self ) -> T {
6363 critical_section:: with ( |_cs| self . inner . take ( ) )
6464 }
6565}
6666
67- // SAFETY: Sync is implemented here for CriticalSectionCell as T is only accessed via nestable critical sections
67+ // SAFETY: Sync is implemented here for ` CriticalSectionCell` as `T` is only accessed via nestable critical sections
6868unsafe impl < T > Sync for CriticalSectionCell < T > { }
6969
7070// SAFETY: Can implement send here due to critical section without T being explicitly Send
@@ -78,7 +78,7 @@ impl<T: Copy> Clone for CriticalSectionCell<T> {
7878}
7979
8080impl < T : Default > Default for CriticalSectionCell < T > {
81- /// Creates a `Cell<T>`, with the `Default` value for T .
81+ /// Creates a `Cell<T>`, with the `Default` value for `T` .
8282 #[ inline]
8383 fn default ( ) -> CriticalSectionCell < T > {
8484 CriticalSectionCell :: new ( Default :: default ( ) )
0 commit comments