]> git.lizzy.rs Git - rust.git/commitdiff
Talk about ends, rather than means, in macro tutorial introduction.
authorPaul Stansifer <paul.stansifer@gmail.com>
Sun, 21 Oct 2012 01:54:25 +0000 (21:54 -0400)
committerPaul Stansifer <paul.stansifer@gmail.com>
Sun, 21 Oct 2012 01:54:25 +0000 (21:54 -0400)
doc/tutorial-macros.md

index c7e1ada648e9b305d0310a1889512c23cfad8980..40cbcacf1e1b0a4cf214bd5bbdc1360af7196f77 100644 (file)
@@ -2,11 +2,11 @@
 
 # Introduction
 
-Functions are the primary tool that programmers can use to build
-abstractions. Sometimes, though, programmers want to abstract over
-compile-time, syntactic structures rather than runtime values. For example,
-the following two code fragments both pattern-match on their input and return
-early in one case, doing nothing otherwise:
+Functions are the primary tool that programmers can use to build abstractions.
+Sometimes, however, programmers want to perform abstractions over things that are not
+runtime values. Macros provide a syntactic abstraction. For an example of how this
+can be useful, consider the following two code fragments, which both pattern-match
+on their input and return early in one case, and do nothing otherwise:
 
 ~~~~
 # enum t { special_a(uint), special_b(uint) };