From 238d4cead752023f5c31d78a48b7d7d46ff5f4ac Mon Sep 17 00:00:00 2001 From: Diogo Date: Mon, 16 Oct 2023 12:43:59 -0300 Subject: [PATCH] fix typos --- en/src/comments-docs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/src/comments-docs.md b/en/src/comments-docs.md index b759c0f..afef0fa 100644 --- a/en/src/comments-docs.md +++ b/en/src/comments-docs.md @@ -183,7 +183,7 @@ Add following code to `src/compute.rs` , /// ``` /// # fn try_main() -> Result<(), String> { -/// let res = doc_comments::compute::try_div(10, 0)?; +/// # let res = doc_comments::compute::try_div(10, 0)?; /// # Ok(()) // returning from try_main /// # } /// # fn main() { @@ -228,7 +228,7 @@ Add following code to `src/lib.rs`: ```rust // in lib.rs -/// Add one to the given value and return a [`Option`] type +/// Add three to the given value and return a [`Option`] type pub fn add_three(x: i32) -> Option { Some(x + 3) }