From 05d10917ca0423d25418625996ec8531c4d6cce7 Mon Sep 17 00:00:00 2001 From: BITcp Date: Sun, 1 Feb 2026 19:49:27 +0800 Subject: [PATCH 1/3] Sync a URL with the BOOK's chapter numbering, moving from 19 to 20 The outdated brings us a redirecting. --- src/linkage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linkage.md b/src/linkage.md index 5ce8f6fd5a..0b275d72af 100644 --- a/src/linkage.md +++ b/src/linkage.md @@ -10,7 +10,7 @@ statically and dynamically. This section will explore the various methods to link crates together, and more information about native libraries can be found in the [FFI section of the book][ffi]. -[ffi]: ../book/ch19-01-unsafe-rust.html#using-extern-functions-to-call-external-code +[ffi]: ../book/ch20-01-unsafe-rust.html#using-extern-functions-to-call-external-code r[link.type] In one session of compilation, the compiler can generate multiple artifacts From e8459973d6a70fa89b48c9f4aaef6a265d209dc2 Mon Sep 17 00:00:00 2001 From: BITcp Date: Sun, 1 Feb 2026 20:28:09 +0800 Subject: [PATCH 2/3] Add a URL fragment for exact jumping --- src/tokens.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tokens.md b/src/tokens.md index 98f0a40454..ab90fccb16 100644 --- a/src/tokens.md +++ b/src/tokens.md @@ -869,7 +869,7 @@ r[lex.token.reserved-guards.edition2024] [Integer literal expressions]: expressions/literal-expr.md#integer-literal-expressions [keywords]: keywords.md [literal expressions]: expressions/literal-expr.md -[loop labels]: expressions/loop-expr.md +[loop labels]: expressions/loop-expr.md#loop-labels [macros]: macros-by-example.md [String continuation escapes]: expressions/literal-expr.md#string-continuation-escapes [syntax index]: syntax-index.md#operators-and-punctuation From 02fbae305e6674186bca1435597bc4b566e313af Mon Sep 17 00:00:00 2001 From: BITcp Date: Sun, 1 Feb 2026 20:36:36 +0800 Subject: [PATCH 3/3] Remove unneeded brackets --- src/types/textual.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/textual.md b/src/types/textual.md index 05068309a7..f56a916beb 100644 --- a/src/types/textual.md +++ b/src/types/textual.md @@ -8,7 +8,7 @@ r[type.text.char-value] A value of type `char` is a [Unicode scalar value] (i.e. a code point that is not a surrogate), represented as a 32-bit unsigned word in the 0x0000 to 0xD7FF or 0xE000 to 0x10FFFF range. r[type.text.char-precondition] -It is immediate [undefined behavior] to create a `char` that falls outside this range. A `[char]` is effectively a UCS-4 / UTF-32 string of length 1. +It is immediate [undefined behavior] to create a `char` that falls outside this range. A `char` is effectively a UCS-4 / UTF-32 string of length 1. r[type.text.str-value] A value of type `str` is represented the same way as `[u8]`, a slice of 8-bit unsigned bytes. However, the Rust standard library makes extra assumptions about `str`: methods working on `str` assume and ensure that the data in there is valid UTF-8. Calling a `str` method with a non-UTF-8 buffer can cause [undefined behavior] now or in the future.