Skip to content

Commit 6b689e3

Browse files
authored
Merge pull request #63 from TonalidadeHidrica/fix-code-block-and-update-upstream
コードブロック中のコメントの修正と、本家の取り込み
2 parents f593f83 + d2e8458 commit 6b689e3

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/rust-2021/default-cargo-resolver.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,8 @@ And somewhere in our dependency tree, another package has this:
150150

151151
そして依存関係の中にはこんなパッケージもあるとしましょう:
152152

153-
<!--
154153
```toml
155154
# Another package's Cargo.toml
156-
157-
[build-dependencies]
158-
bstr = "0.2.16"
159-
```
160-
-->
161-
162-
```toml
163155
# 別のパッケージの Cargo.toml
164156

165157
[build-dependencies]
@@ -354,7 +346,7 @@ bstr v0.2.16
354346

355347
<!--
356348
This snippet of output shows that the project `foo` depends on `bar` with the "default" feature.
357-
Then, `bar` depends on `bstr` as a build-dependency with the "default" feature
349+
Then, `bar` depends on `bstr` as a build-dependency with the "default" feature.
358350
We can further see that `bstr`'s "default" feature enables "unicode" (among other features).
359351
-->
360352

src/rust-2021/prelude.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ We can fix this by using fully qualified syntax:
7575
```rust,ignore
7676
fn main() {
7777
// Now it is clear which trait method we're referring to
78-
<Vec<i32> as MyTrait<()>::from_iter(None);
78+
<Vec<i32> as MyTrait<()>>::from_iter(None);
7979
}
8080
```
8181

0 commit comments

Comments
 (0)