Skip to content

Commit 3662e75

Browse files
authored
Merge pull request #179 from koic/fix_a_typo
Tweak a sentence in ch04-03-slices
2 parents 21f393b + a7789fc commit 3662e75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch04-03-slices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ a slice that contains a pointer to the 7th byte (counting from 1) of `s` with a
236236
ここで、`starting_index`はスライスの最初の位置、`ending_index`はスライスの終端位置よりも、
237237
1大きい値です。内部的には、スライスデータ構造は、開始地点とスライスの長さを保持しており、
238238
スライスの長さは`ending_index`から`starting_index`を引いたものに対応します。以上より、
239-
`let world = &s[6..11];`の場合には、`world``s`の(1から数えて)7バイト目へのポインタと5という長さを保持するスライスになるでしょう
239+
`let world = &s[6..11];`の場合には、`world``s`の添え字6のバイトへのポインタと5という長さを持つスライスになるでしょう
240240

241241
<!--
242242
Figure 4-6 shows this in a diagram.

0 commit comments

Comments
 (0)