Skip to content

Commit

Permalink
Merge pull request #187 from You-saku/fix-typo1
Browse files Browse the repository at this point in the history
Fix typo in Option page.
  • Loading branch information
dalance authored Apr 30, 2024
2 parents baf7bf0 + eccebfc commit 79b4d1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/std/option.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ <h1 id="option"><a class="header" href="#option"><code>Option</code></a></h1>
println!(&quot;{:?} unwraps to {:?}&quot;, optional_float, optional_float.unwrap());

// Unwrapping a `None` variant will `panic!`
// `None`をアンラップしようとすると`panic!`
// `None`をアンラップしようとすると`panic!`
println!(&quot;{:?} unwraps to {:?}&quot;, none, none.unwrap());
}</code></pre></pre>

Expand Down
2 changes: 1 addition & 1 deletion src-old/std/option/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
2 changes: 1 addition & 1 deletion src/std/option.md
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
```

0 comments on commit 79b4d1a

Please sign in to comment.