Skip to content

Commit

Permalink
Merge pull request #78 from yiskw713/edit_listing8-7
Browse files Browse the repository at this point in the history
ch08-01 リスト8-7のコードの修正
  • Loading branch information
tatsuya6502 authored Sep 7, 2020
2 parents 469fd96 + 2b0ed67 commit eb34a26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/ch08-01-vectors.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ <h3><a class="header" href="#ベクタの要素を読む" id="ベクタの要素
let first = &amp;v[0];

v.push(6);

println!("The first element is: {}", first);
</code></pre>
<!--
<span class="caption">Listing 8-7: Attempting to add an element to a vector
Expand Down
2 changes: 2 additions & 0 deletions src/ch08-01-vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ let mut v = vec![1, 2, 3, 4, 5];
let first = &v[0];
v.push(6);
println!("The first element is: {}", first);
```

<!--
Expand Down

0 comments on commit eb34a26

Please sign in to comment.