From eccebfcad9de981e93414cd5cde9cf9adee89f95 Mon Sep 17 00:00:00 2001 From: You-saku Date: Mon, 29 Apr 2024 19:23:26 +0900 Subject: [PATCH] fix: fix typo in option page. --- docs/std/option.html | 2 +- src-old/std/option/option.rs | 2 +- src/std/option.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/std/option.html b/docs/std/option.html index 2d0e7f474..f2004f8c6 100644 --- a/docs/std/option.html +++ b/docs/std/option.html @@ -206,7 +206,7 @@

Option

println!("{:?} unwraps to {:?}", optional_float, optional_float.unwrap()); // Unwrapping a `None` variant will `panic!` - // `None`をアンラップしようとすると`panic!`る + // `None`をアンラップしようとすると`panic!` println!("{:?} unwraps to {:?}", none, none.unwrap()); } diff --git a/src-old/std/option/option.rs b/src-old/std/option/option.rs index 0b6f4e62a..add59d4e7 100644 --- a/src-old/std/option/option.rs +++ b/src-old/std/option/option.rs @@ -33,6 +33,6 @@ fn main() { // `Some`をアンラップすると中の値を取得できる。 println!("{:?} unwraps to {:?}", optional_float, optional_float.unwrap()); - // `None`をアンラップしようとすると`panic!`る + // `None`をアンラップしようとすると`panic!` println!("{:?} unwraps to {:?}", none, none.unwrap()); } diff --git a/src/std/option.md b/src/std/option.md index f22e1f812..a7c0f53d0 100644 --- a/src/std/option.md +++ b/src/std/option.md @@ -62,7 +62,7 @@ fn main() { println!("{:?} unwraps to {:?}", optional_float, optional_float.unwrap()); // Unwrapping a `None` variant will `panic!` - // `None`をアンラップしようとすると`panic!`る + // `None`をアンラップしようとすると`panic!` println!("{:?} unwraps to {:?}", none, none.unwrap()); } ```