Skip to content

Commit 9d5e05d

Browse files
committed
---
yaml --- r: 34845 b: refs/heads/master c: 4edb881 h: refs/heads/master i: 34843: c776439 v: v3
1 parent d83f2c9 commit 9d5e05d

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 191d16265be6b9db3d48ef87944b7d42b5dffe0d
2+
refs/heads/master: 4edb88112409c111790dacacb06c22de2ef8da06
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/doc/tutorial-macros.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
# Introduction
44

5-
Functions are the primary tool that programmers can use to build
6-
abstractions. Sometimes, though, programmers want to abstract over
7-
compile-time, syntactic structures rather than runtime values. For example,
8-
the following two code fragments both pattern-match on their input and return
9-
early in one case, doing nothing otherwise:
5+
Functions are the primary tool that programmers can use to build abstractions.
6+
Sometimes, however, programmers want to perform abstractions over things that are not
7+
runtime values. Macros provide a syntactic abstraction. For an example of how this
8+
can be useful, consider the following two code fragments, which both pattern-match
9+
on their input and return early in one case, and do nothing otherwise:
1010

1111
~~~~
1212
# enum t { special_a(uint), special_b(uint) };

trunk/src/libstd/net_tcp.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,8 +1387,7 @@ mod test {
13871387
let sock = result::unwrap(move connect_result);
13881388
13891389
// This is what we are actually testing!
1390-
assert net::ip::format_addr(&sock.get_peer_addr()) ==
1391-
~"127.0.0.1";
1390+
assert net::ip::format_addr(&sock.get_peer_addr()) == ~"127.0.0.1";
13921391
assert net::ip::get_port(&sock.get_peer_addr()) == 8887;
13931392

13941393
// Fulfill the protocol the test server expects

trunk/src/libstd/uv_ll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ pub mod test {
14841484
fn impl_uv_tcp_server_and_request() unsafe {
14851485
let bind_ip = ~"0.0.0.0";
14861486
let request_ip = ~"127.0.0.1";
1487-
let port = 8886;
1487+
let port = 8887;
14881488
let kill_server_msg = ~"does a dog have buddha nature?";
14891489
let server_resp_msg = ~"mu!";
14901490
let client_port = core::comm::Port::<~str>();

0 commit comments

Comments
 (0)