Skip to content

Commit 3126cc8

Browse files
authored
Merge pull request #166 from kdnakt/translate-path
Translate untranslated lines in path.md
2 parents b9e7726 + 82b4c39 commit 3126cc8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/std_misc/path.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ information from the file/directory the path points to.
1414
-->
1515
`Path``OsStr`から作ることができます。そうすればそのパスが指すファイル・ディレクトリの情報を取得するためのメソッドがいくつか使えるようになります。
1616

17+
<!--
1718
A `Path` is immutable. The owned version of `Path` is `PathBuf`. The relation
1819
between `Path` and `PathBuf` is similar to that of `str` and `String`:
1920
a `PathBuf` can be mutated in-place, and can be dereferenced to a `Path`.
21+
-->
22+
`Path`はイミュータブルです。`Path`の所有権ありのバージョンが`PathBuf`です。
23+
`Path``PathBuf`の関係は、`str``String`の関係に似ています。
24+
`PathBuf`はそのまま変更でき、`Path`にデリファレンスすることができます。
2025

2126
<!--
2227
Note that a `Path` is *not* internally represented as an UTF-8 string, but
@@ -47,10 +52,12 @@ fn main() {
4752
let mut new_path = path.join("a").join("b");
4853
4954
// `push` extends the `PathBuf` with a `&Path`
55+
// `push`は`PathBuf`を`&Path`で拡張する。
5056
new_path.push("c");
5157
new_path.push("myfile.tar.gz");
5258
5359
// `set_file_name` updates the file name of the `PathBuf`
60+
// `set_file_name`は`PathBuf`のファイル名を更新する。
5461
new_path.set_file_name("package.tgz");
5562
5663
// Convert the `PathBuf` into a string slice
@@ -74,7 +81,10 @@ the `Metadata` struct.
7481
-->
7582
### 参照
7683

84+
<!--
7785
[OsStr][1] and [Metadata][2].
86+
-->
87+
[OsStr][1] ならびに [Metadata][2]
7888

7989
[1]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html
8090
[2]: https://doc.rust-lang.org/std/fs/struct.Metadata.html

0 commit comments

Comments
 (0)