File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -57,19 +57,17 @@ impl Page {
57
57
/// ```
58
58
/// use kernel::page::Page;
59
59
///
60
- /// # fn dox() -> Result<(), kernel::alloc::AllocError> {
61
60
/// let page = Page::alloc_page(GFP_KERNEL)?;
62
- /// # Ok(()) }
61
+ /// # Ok::<(), kernel::alloc::AllocError>(())
63
62
/// ```
64
63
///
65
64
/// Allocate memory for a page and zero its contents.
66
65
///
67
66
/// ```
68
67
/// use kernel::page::Page;
69
68
///
70
- /// # fn dox() -> Result<(), kernel::alloc::AllocError> {
71
69
/// let page = Page::alloc_page(GFP_KERNEL | __GFP_ZERO)?;
72
- /// # Ok(()) }
70
+ /// # Ok::<(), kernel::alloc::AllocError>(())
73
71
/// ```
74
72
pub fn alloc_page ( flags : Flags ) -> Result < Self , AllocError > {
75
73
// SAFETY: Depending on the value of `gfp_flags`, this call may sleep. Other than that, it
You can’t perform that action at this time.
0 commit comments