Skip to content

Commit

Permalink
kernel: doc: fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Oct 18, 2024
1 parent 4d4371e commit 8262484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kernel/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ pub struct DebugWriter {

/// Static variable that holds the kernel's reference to the debug tool.
///
/// This is needed so the debug!() macros have a reference to the object to use.
/// This is needed so the `debug!()` macros have a reference to the object to
/// use.
static mut DEBUG_WRITER: Option<&'static mut DebugWriterWrapper> = None;

unsafe fn try_get_debug_writer() -> Option<&'static mut DebugWriterWrapper> {
Expand Down
2 changes: 1 addition & 1 deletion kernel/src/utilities/copy_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use core::ptr;
pub trait CopyOrErr {
/// Copy a non-overlapping slice from `src` to `self`.
///
/// This is a non-panicing version of [`slice::copy_from_slice`].
/// This is a non-panicking version of [`slice::copy_from_slice`].
///
/// Returns `Err(ErrorCode)` if `src` and `self` are not the same length.
fn copy_from_slice_or_err(&mut self, src: &Self) -> Result<(), ErrorCode>;
Expand Down

0 comments on commit 8262484

Please sign in to comment.