Align section references with Rust Book section names

This commit is contained in:
Zhijie Wang 2026-05-24 16:51:48 -07:00
parent b18a8c3036
commit 9172a5bf27

View File

@ -265,10 +265,10 @@ for `a.len() >= 100`?"""
name = "primitive_types4" name = "primitive_types4"
dir = "04_primitive_types" dir = "04_primitive_types"
hint = """ hint = """
Take a look at the 'Understanding Ownership -> Slices -> Other Slices' section Take a look at the 'Understanding Ownership -> The Slice Type -> Other Slices'
of the book: https://doc.rust-lang.org/book/ch04-03-slices.html and use the section of the book: https://doc.rust-lang.org/book/ch04-03-slices.html and use
starting and ending (plus one) indices of the items in the array that you want the starting and ending (plus one) indices of the items in the array that you
to end up in the slice. want to end up in the slice.
If you're curious why the first argument of `assert_eq!` does not have an If you're curious why the first argument of `assert_eq!` does not have an
ampersand for a reference since the second argument is a reference, take a look ampersand for a reference since the second argument is a reference, take a look