Guide: Fix imports (times_four instead of add_four)
This commit is contained in:
parent
223c043110
commit
c6c3f47f7c
|
@ -3295,7 +3295,7 @@ fn times_four(x: int) -> int { x * 4 }
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use super::add_three;
|
use super::add_three;
|
||||||
use super::add_four;
|
use super::times_four;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_add_three() {
|
fn test_add_three() {
|
||||||
|
@ -3344,7 +3344,7 @@ about yet, and that's these lines:
|
||||||
|
|
||||||
```{rust,ignore}
|
```{rust,ignore}
|
||||||
use super::add_three;
|
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
|
Because we've made a nested module, we can import functions from the parent
|
||||||
|
|
Loading…
Reference in New Issue