Skip to content

Commit

Permalink
Guide: Fix imports (times_four instead of add_four)
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Aug 6, 2014
1 parent 223c043 commit c6c3f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/guide.md
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c6c3f47

Please sign in to comment.