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 {
5757 /// ```
5858 /// use kernel::page::Page;
5959 ///
60- /// # fn dox() -> Result<(), kernel::alloc::AllocError> {
6160 /// let page = Page::alloc_page(GFP_KERNEL)?;
62- /// # Ok(()) }
61+ /// # Ok::<(), kernel::alloc::AllocError>(())
6362 /// ```
6463 ///
6564 /// Allocate memory for a page and zero its contents.
6665 ///
6766 /// ```
6867 /// use kernel::page::Page;
6968 ///
70- /// # fn dox() -> Result<(), kernel::alloc::AllocError> {
7169 /// let page = Page::alloc_page(GFP_KERNEL | __GFP_ZERO)?;
72- /// # Ok(()) }
70+ /// # Ok::<(), kernel::alloc::AllocError>(())
7371 /// ```
7472 pub fn alloc_page ( flags : Flags ) -> Result < Self , AllocError > {
7573 // 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