diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-11-05 18:06:27 -0800 | 
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-11-17 21:28:18 -0800 | 
| commit | dab8fec4af85c94b65d7036129f89a7e7bf6cbac (patch) | |
| tree | bb1e749c9ffbdd1899ad8c3dfa51c1cf77479075 /doc/tutorial-container.md | |
| parent | ade310cbb6e949b27285ca592e34371c1cc6677f (diff) | |
| download | rust-dab8fec4af85c94b65d7036129f89a7e7bf6cbac.tar.gz rust-dab8fec4af85c94b65d7036129f89a7e7bf6cbac.zip | |
Forbid privacy in inner functions
Closes #10111
Diffstat (limited to 'doc/tutorial-container.md')
| -rw-r--r-- | doc/tutorial-container.md | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/doc/tutorial-container.md b/doc/tutorial-container.md index bd0510c4fb3..65f536fa9f2 100644 --- a/doc/tutorial-container.md +++ b/doc/tutorial-container.md @@ -87,6 +87,7 @@ Reaching the end of the iterator is signalled by returning `None` instead of `Some(item)`: ~~~ +# fn main() {} /// A stream of N zeroes struct ZeroStream { priv remaining: uint @@ -301,6 +302,7 @@ the iterator can provide better information. The `ZeroStream` from earlier can provide an exact lower and upper bound: ~~~ +# fn main() {} /// A stream of N zeroes struct ZeroStream { priv remaining: uint | 
