File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,8 @@ println!("v[0] is: {}", v[0]);
132
132
133
133
``` rust,ignore
134
134
fn take(v: Vec<i32>) {
135
- // what happens here isn’t important.
135
+ # // what happens here isn’t important.
136
+ // ここで何が起きるかは重要ではない
136
137
}
137
138
138
139
let v = vec![1, 2, 3];
@@ -273,9 +274,11 @@ println!("{}", a);
273
274
274
275
``` rust
275
276
fn foo (v : Vec <i32 >) -> Vec <i32 > {
276
- // do stuff with v
277
+ # // do stuff with v
278
+ // vについての作業を行う
277
279
278
- // hand back ownership
280
+ # // hand back ownership
281
+ // 所有権を返す
279
282
v
280
283
}
281
284
```
@@ -286,9 +289,11 @@ fn foo(v: Vec<i32>) -> Vec<i32> {
286
289
287
290
``` rust
288
291
fn foo (v1 : Vec <i32 >, v2 : Vec <i32 >) -> (Vec <i32 >, Vec <i32 >, i32 ) {
289
- // do stuff with v1 and v2
292
+ # // do stuff with v1 and v2
293
+ // v1とv2についての作業を行う
290
294
291
- // hand back ownership, and the result of our function
295
+ # // hand back ownership, and the result of our function
296
+ // 所有権と関数の結果を返す
292
297
(v1 , v2 , 42 )
293
298
}
294
299
You can’t perform that action at this time.
0 commit comments