diff options
| author | Graydon Hoare <[email protected]> | 2010-07-13 16:04:31 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-13 16:04:31 -0700 |
| commit | 405cd282a305270df781bd77d6a476b9398e7e1c (patch) | |
| tree | d9daae8a80c5f29d3ec9d4d5936c3c24e0655645 /doc | |
| parent | Fix the next typo in mlist-cycle.rs; still doesn't work. (diff) | |
| download | rust-405cd282a305270df781bd77d6a476b9398e7e1c.tar.xz rust-405cd282a305270df781bd77d6a476b9398e7e1c.zip | |
Typo fixes to docs, from Ralph Giles.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/rust.texi | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/doc/rust.texi b/doc/rust.texi index 9dc6ea59..0b6f0cae 100644 --- a/doc/rust.texi +++ b/doc/rust.texi @@ -1201,9 +1201,9 @@ different tasks. Like any other immutable type, they can pass over channels, and live as long as the last task referencing them within a given domain. When unreferenced, they are destroyed immediately (due to reference-counting) and returned to the heap memory allocator. Destruction of an immutable box also -executes within the context of task that drops the last reference to a shared -heap allocation, so executing a long-running destructor does not interrupt -execution of other tasks. +executes within the context of the task that drops the last reference to a +shared heap allocation, so executing a long-running destructor does not +interrupt execution of other tasks. @node Ref.Mem.Own @@ -2997,7 +2997,7 @@ by the runtime or emitted to a system console. Log statements are enabled or disabled dynamically at run-time on a per-task and per-item basis. @xref{Ref.Run.Log}. -Executing a @code{log} statement not considered an @code{io} effect in the +Executing a @code{log} statement is not considered an @code{io} effect in the effect system. In other words, a pure function remains pure even if it contains a log statement. @@ -3046,10 +3046,11 @@ completes normally, the runtime will not log the path. A value that is marked by a @code{note} statement is @emph{not} copied aside when control passes through the @code{note}. In other words, if a @code{note} -statement notes a particular @var{lval}, and code after the @code{note} that -slot, and then a subsequent failure occurs, the @emph{mutated} value will be -logged during unwinding, @emph{not} the original value that was denoted by the -@var{lval} at the moment control passed through the @code{note} statement. +statement notes a particular @var{lval}, and code after the @code{note} +mutates that slot, and then a subsequent failure occurs, the @emph{mutated} +value will be logged during unwinding, @emph{not} the original value that was +denoted by the @var{lval} at the moment control passed through the @code{note} +statement. @node Ref.Stmt.While @subsection Ref.Stmt.While |