We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21f393b + a7789fc commit 3662e75Copy full SHA for 3662e75
src/ch04-03-slices.md
@@ -236,7 +236,7 @@ a slice that contains a pointer to the 7th byte (counting from 1) of `s` with a
236
ここで、`starting_index`はスライスの最初の位置、`ending_index`はスライスの終端位置よりも、
237
1大きい値です。内部的には、スライスデータ構造は、開始地点とスライスの長さを保持しており、
238
スライスの長さは`ending_index`から`starting_index`を引いたものに対応します。以上より、
239
-`let world = &s[6..11];`の場合には、`world`は`s`の(1から数えて)7バイト目へのポインタと5という長さを保持するスライスになるでしょう。
+`let world = &s[6..11];`の場合には、`world`は`s`の添え字6のバイトへのポインタと5という長さを持つスライスになるでしょう。
240
241
<!--
242
Figure 4-6 shows this in a diagram.
0 commit comments