Skip to content

Commit 4ab5149

Browse files
authored
Fix a mismatch between en and ja.
This commit changes the query string `"duct."` to `"duct"`. Currently, the Japanese book is as follows: > <!-- > This test searches for the string `“duct.”` The text we’re searching is three > lines, only one of which contains `“duct.”` We assert that the value returned > from the `search` function contains only the line we expect. > --> > > このテストは、"duct."という文字列を検索します。検索対象の文字列は3行で、うち1行だけが"duct."を含みます。 search関数から返る値が想定している行だけを含むことをアサーションします。 The content before translation is different from the corresponding version of the English book as follows: https://github.com/rust-lang/book/blob/acc5ee25138531b030c6c4844de2b7066959021d/2018-edition/src/ch12-04-testing-the-librarys-functionality.md > This test searches for the string "duct". The text we’re searching is three lines, only one of which contains "duct". We assert that the value returned from the search function contains only the line we expect.
1 parent 328b2f9 commit 4ab5149

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ch12-04-testing-the-librarys-functionality.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ function we wish we had</span>
123123
<span class="caption">リスト12-15: こうだったらいいなという`search`関数の失敗するテストを作成する</span>
124124

125125
<!--
126-
This test searches for the string `“duct.”` The text we’re searching is three
127-
lines, only one of which contains `“duct.”` We assert that the value returned
126+
This test searches for the string `“duct”`. The text we’re searching is three
127+
lines, only one of which contains `“duct”`. We assert that the value returned
128128
from the `search` function contains only the line we expect.
129129
-->
130130

131-
このテストは、`"duct."`という文字列を検索します。検索対象の文字列は3行で、うち1行だけが`"duct."`を含みます。
131+
このテストは、`"duct"`という文字列を検索します。検索対象の文字列は3行で、うち1行だけが`"duct"`を含みます。
132132
`search`関数から返る値が想定している行だけを含むことをアサーションします。
133133

134134
<!--

0 commit comments

Comments
 (0)