diff options
| author | Daniel Hofstetter <daniel.hofstetter@42dh.com> | 2014-08-06 09:51:02 +0200 |
|---|---|---|
| committer | Daniel Hofstetter <daniel.hofstetter@42dh.com> | 2014-08-06 09:51:02 +0200 |
| commit | c6c3f47f7c72ddf45ba1bf6bae6bec3699d7212e (patch) | |
| tree | 3406ca5132c955ed49737c06bbb0f8eda2e0c62b | |
| parent | 223c043110c0eb35847bca41e58c0ce11110d78a (diff) | |
| download | rust-c6c3f47f7c72ddf45ba1bf6bae6bec3699d7212e.tar.gz rust-c6c3f47f7c72ddf45ba1bf6bae6bec3699d7212e.zip | |
Guide: Fix imports (times_four instead of add_four)
| -rw-r--r-- | src/doc/guide.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md index 0236cc0533f..a64783b8b5e 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -3295,7 +3295,7 @@ fn times_four(x: int) -> int { x * 4 } #[cfg(test)] mod test { use super::add_three; - use super::add_four; + use super::times_four; #[test] fn test_add_three() { @@ -3344,7 +3344,7 @@ about yet, and that's these lines: ```{rust,ignore} use super::add_three; -use super::add_four; +use super::times_four; ``` Because we've made a nested module, we can import functions from the parent |
