aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRalph Giles <[email protected]>2010-11-03 10:38:34 -0700
committerGraydon Hoare <[email protected]>2010-11-03 15:37:54 -0700
commitc45d21eb9b5c1dbcf91862943f2a2db0905c6de5 (patch)
tree26b8bdddceacbc2e68283429317b0c753f981cdc /doc
parentSupport while and do-while loops in rustc. (diff)
downloadrust-c45d21eb9b5c1dbcf91862943f2a2db0905c6de5.tar.xz
rust-c45d21eb9b5c1dbcf91862943f2a2db0905c6de5.zip
Fix two documentation typos.
Diffstat (limited to 'doc')
-rw-r--r--doc/rust.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/rust.texi b/doc/rust.texi
index fed7d9ec..e7bbb01d 100644
--- a/doc/rust.texi
+++ b/doc/rust.texi
@@ -247,7 +247,7 @@ roles.
@item Static control over memory allocation, packing and aliasing.
Many values in Rust are allocated @emph{within} their containing stack-frame
-or parent strucure. Numbers, records, tuples and tags are all allocated this
+or parent structure. Numbers, records, tuples and tags are all allocated this
way. To allocate such values in the heap, they must be explicitly
@emph{boxed}. A @dfn{box} is a pointer to a heap allocation that holds another
value, its @emph{content}. If the content of a box is a @emph{state} value --
@@ -1392,7 +1392,7 @@ automatically adjusting reference counts on the associated heap
allocation. For these operations, to access the value held in the box requires
an explicit dereference of the box value. Explicitly dereferencing a box is
indicated with the unary @emph{star} operator @code{*}. Examples of such
-@dfn{explicit dererence} operations are:
+@dfn{explicit dereference} operations are:
@itemize
@item copying box values (@code{x = y})
@item passing box values to functions (@code{f(x,y)})