about summary refs log tree commit diff
path: root/doc/tutorial-macros.md
diff options
context:
space:
mode:
authorBrian Anderson <andersrb@gmail.com>2012-10-04 14:15:18 -0700
committerBrian Anderson <andersrb@gmail.com>2012-10-04 14:15:18 -0700
commitdcdf1ee698c99bcdb4e6d9c3f8d5c1da0fb03660 (patch)
tree579e09980568c51d78d76b45ef62187e222d21fc /doc/tutorial-macros.md
parent738cd00f1d3b40a4856785e5a96b2ca4b0cc4e7f (diff)
parent0eb9d41454083d2e9cb11859669f35c25c0f3347 (diff)
Merge pull request #3659 from gmcabrita/fix-typos
Fixed a few typos in the tutorials.
Diffstat (limited to 'doc/tutorial-macros.md')
-rw-r--r--doc/tutorial-macros.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tutorial-macros.md b/doc/tutorial-macros.md
index 5cd5d79bd29..8202fbe8dc5 100644
--- a/doc/tutorial-macros.md
+++ b/doc/tutorial-macros.md
@@ -65,7 +65,7 @@ forbidden.
 To take as an argument a fragment of Rust code, write `$` followed by a name
  (for use on the right-hand side), followed by a `:`, followed by the sort of
 fragment to match (the most common ones are `ident`, `expr`, `ty`, `pat`, and
-`block`). Anything not preceeded by a `$` is taken literally. The standard
+`block`). Anything not preceded by a `$` is taken literally. The standard
 rules of tokenization apply,
 
 So `($x:ident => (($e:expr)))`, though excessively fancy, would create a macro
@@ -88,7 +88,7 @@ position).
 
 Going back to the motivating example, suppose that we wanted each invocation
 of `early_return` to potentially accept multiple "special" identifiers. The
-syntax `$(...)*` accepts zero or more occurences of its contents, much like
+syntax `$(...)*` accepts zero or more occurrences of its contents, much like
 the Kleene star operator in regular expressions. It also supports a separator
 token (a comma-separated list could be written `$(...),*`), and `+` instead of
 `*` to mean "at least one".