Skip to content

Commit f82f644

Browse files
---
yaml --- r: 132434 b: refs/heads/dist-snap c: 69267b1 h: refs/heads/master v: v3
1 parent 1dc534c commit f82f644

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: ea92a5e90a4a88d10dcdd5647dfb906aaecadd21
9+
refs/heads/dist-snap: 69267b1e1d42c4c00ce2c478be8d8088f7a75283
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/doc/guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ let x;
451451
```{ignore}
452452
src/hello_world.rs:2:9: 2:10 error: cannot determine a type for this local variable: unconstrained type
453453
src/hello_world.rs:2 let x;
454-
^
454+
^
455455
```
456456

457457
Giving it a type will compile, though:
@@ -477,7 +477,7 @@ but it will still print "Hello, world!":
477477
Compiling hello_world v0.1.0 (file:/home/you/projects/hello_world)
478478
src/hello_world.rs:2:9: 2:10 warning: unused variable: `x`, #[warn(unused_variable)] on by default
479479
src/hello_world.rs:2 let x: int;
480-
^
480+
^
481481
```
482482

483483
Rust warns us that we never use the variable binding, but since we never use it,
@@ -499,7 +499,7 @@ $ cargo build
499499
Compiling hello_world v0.1.0 (file:/home/you/projects/hello_world)
500500
src/hello_world.rs:4:39: 4:40 error: use of possibly uninitialized variable: `x`
501501
src/hello_world.rs:4 println!("The value of x is: {}", x);
502-
^
502+
^
503503
note: in expansion of format_args!
504504
<std macros>:2:23: 2:77 note: expansion site
505505
<std macros>:1:1: 3:2 note: in expansion of println!

0 commit comments

Comments
 (0)