diff --git a/blog/content/edition-1/extra/naked-exceptions/01-catching-exceptions/index.md b/blog/content/edition-1/extra/naked-exceptions/01-catching-exceptions/index.md index e13711cc..eb4a3a92 100644 --- a/blog/content/edition-1/extra/naked-exceptions/01-catching-exceptions/index.md +++ b/blog/content/edition-1/extra/naked-exceptions/01-catching-exceptions/index.md @@ -422,7 +422,7 @@ extern "C" fn divide_by_zero_handler() -> ! { ``` We register a single handler function for a [divide by zero error] \(index 0). Like the name says, this exception occurs when dividing a number by 0. Thus we have an easy way to test our new exception handler. -[divide by zero error]: https://wiki.osdev.org/Exceptions#Divide-by-zero_Error +[divide by zero error]: https://wiki.osdev.org/Exceptions#Division_Error However, it doesn't work this way: diff --git a/blog/content/edition-1/posts/10-double-faults/index.md b/blog/content/edition-1/posts/10-double-faults/index.md index b959d16d..75320739 100644 --- a/blog/content/edition-1/posts/10-double-faults/index.md +++ b/blog/content/edition-1/posts/10-double-faults/index.md @@ -128,7 +128,7 @@ First Exception | Second Exception [Divide-by-zero],
[Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] | [Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] [Page Fault] | [Page Fault],
[Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] -[Divide-by-zero]: https://wiki.osdev.org/Exceptions#Divide-by-zero_Error +[Divide-by-zero]: https://wiki.osdev.org/Exceptions#Division_Error [Invalid TSS]: https://wiki.osdev.org/Exceptions#Invalid_TSS [Segment Not Present]: https://wiki.osdev.org/Exceptions#Segment_Not_Present [Stack-Segment Fault]: https://wiki.osdev.org/Exceptions#Stack-Segment_Fault diff --git a/blog/content/edition-2/posts/04-testing/index.ja.md b/blog/content/edition-2/posts/04-testing/index.ja.md index 6f8837f5..08c5c22f 100644 --- a/blog/content/edition-2/posts/04-testing/index.ja.md +++ b/blog/content/edition-2/posts/04-testing/index.ja.md @@ -890,7 +890,7 @@ fn test_println() { 標準ライブラリのテストフレームワークは、[`#[should_panic]`属性][should_panic]をサポートしています。これを使うと、失敗しなければならないテストを作ることができます。これは、例えば、関数が無効な引数を渡されたときに失敗することを確かめる場合などに便利です。残念なことに、この機能は標準ライブラリのサポートを必要とするため、`#[no_std]`クレートではこの属性はサポートされていません。 -[should_panic]: https://doc.rust-jp.rs/rust-by-example-ja/testing/unit_testing.html#testing-panics +[should_panic]: https://doc.rust-jp.rs/rust-by-example-ja/testing/unit_testing.html#パニックをテストする `#[should_panic]`属性は使えませんが、パニックハンドラから成功のエラーコードで終了するような結合テストを作れば、似たような動きをさせることはできます。そのようなテストを`should_panic`という名前で作ってみましょう: diff --git a/blog/content/edition-2/posts/06-double-faults/index.fa.md b/blog/content/edition-2/posts/06-double-faults/index.fa.md index 05ca782d..4eeba4fa 100644 --- a/blog/content/edition-2/posts/06-double-faults/index.fa.md +++ b/blog/content/edition-2/posts/06-double-faults/index.fa.md @@ -138,7 +138,7 @@ extern "x86-interrupt" fn double_fault_handler( [Divide-by-zero],
[Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] | [Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] [Page Fault] | [Page Fault],
[Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] -[Divide-by-zero]: https://wiki.osdev.org/Exceptions#Divide-by-zero_Error +[Divide-by-zero]: https://wiki.osdev.org/Exceptions#Division_Error [Invalid TSS]: https://wiki.osdev.org/Exceptions#Invalid_TSS [Segment Not Present]: https://wiki.osdev.org/Exceptions#Segment_Not_Present [Stack-Segment Fault]: https://wiki.osdev.org/Exceptions#Stack-Segment_Fault diff --git a/blog/content/edition-2/posts/06-double-faults/index.ja.md b/blog/content/edition-2/posts/06-double-faults/index.ja.md index dc048eba..89c2c4aa 100644 --- a/blog/content/edition-2/posts/06-double-faults/index.ja.md +++ b/blog/content/edition-2/posts/06-double-faults/index.ja.md @@ -132,7 +132,7 @@ CPUはダブルフォルトハンドラを呼べるようになったので、 [ゼロ除算],
[無効TSS],
[セグメント不在],
[スタックセグメントフォルト],
[一般保護違反] | [無効TSS],
[セグメント不在],
[スタックセグメントフォルト],
[一般保護違反] [ページフォルト] | [ページフォルト],
[無効TSS],
[セグメント不在],
[スタックセグメントフォルト],
[一般保護違反] -[ゼロ除算]: https://wiki.osdev.org/Exceptions#Divide-by-zero_Error +[ゼロ除算]: https://wiki.osdev.org/Exceptions#Division_Error [無効TSS]: https://wiki.osdev.org/Exceptions#Invalid_TSS [セグメント不在]: https://wiki.osdev.org/Exceptions#Segment_Not_Present [スタックセグメントフォルト]: https://wiki.osdev.org/Exceptions#Stack-Segment_Fault diff --git a/blog/content/edition-2/posts/06-double-faults/index.ko.md b/blog/content/edition-2/posts/06-double-faults/index.ko.md index 4440fccc..80954eec 100644 --- a/blog/content/edition-2/posts/06-double-faults/index.ko.md +++ b/blog/content/edition-2/posts/06-double-faults/index.ko.md @@ -135,7 +135,7 @@ _“예외 처리 함수를 호출하는 것에 실패했을 때”_ 라는 게 [Divide-by-zero],
[Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] | [Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] [Page Fault] | [Page Fault],
[Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] -[Divide-by-zero]: https://wiki.osdev.org/Exceptions#Divide-by-zero_Error +[Divide-by-zero]: https://wiki.osdev.org/Exceptions#Division_Error [Invalid TSS]: https://wiki.osdev.org/Exceptions#Invalid_TSS [Segment Not Present]: https://wiki.osdev.org/Exceptions#Segment_Not_Present [Stack-Segment Fault]: https://wiki.osdev.org/Exceptions#Stack-Segment_Fault diff --git a/blog/content/edition-2/posts/06-double-faults/index.md b/blog/content/edition-2/posts/06-double-faults/index.md index e45468d4..6cc1a0d4 100644 --- a/blog/content/edition-2/posts/06-double-faults/index.md +++ b/blog/content/edition-2/posts/06-double-faults/index.md @@ -129,7 +129,7 @@ First Exception | Second Exception [Divide-by-zero],
[Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] | [Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] [Page Fault] | [Page Fault],
[Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] -[Divide-by-zero]: https://wiki.osdev.org/Exceptions#Divide-by-zero_Error +[Divide-by-zero]: https://wiki.osdev.org/Exceptions#Division_Error [Invalid TSS]: https://wiki.osdev.org/Exceptions#Invalid_TSS [Segment Not Present]: https://wiki.osdev.org/Exceptions#Segment_Not_Present [Stack-Segment Fault]: https://wiki.osdev.org/Exceptions#Stack-Segment_Fault diff --git a/blog/content/edition-2/posts/06-double-faults/index.zh-CN.md b/blog/content/edition-2/posts/06-double-faults/index.zh-CN.md index 232249d1..8881c0ec 100644 --- a/blog/content/edition-2/posts/06-double-faults/index.zh-CN.md +++ b/blog/content/edition-2/posts/06-double-faults/index.zh-CN.md @@ -137,7 +137,7 @@ extern "x86-interrupt" fn double_fault_handler( | [Divide-by-zero],
[Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] | [Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] | | [Page Fault] | [Page Fault],
[Invalid TSS],
[Segment Not Present],
[Stack-Segment Fault],
[General Protection Fault] | -[Divide-by-zero]: https://wiki.osdev.org/Exceptions#Divide-by-zero_Error +[Divide-by-zero]: https://wiki.osdev.org/Exceptions#Division_Error [Invalid TSS]: https://wiki.osdev.org/Exceptions#Invalid_TSS [Segment Not Present]: https://wiki.osdev.org/Exceptions#Segment_Not_Present [Stack-Segment Fault]: https://wiki.osdev.org/Exceptions#Stack-Segment_Fault