]> git.lizzy.rs Git - rust.git/commit
book: use `mod test` consistently
authorDan Callahan <dan.callahan@gmail.com>
Sat, 4 Apr 2015 03:38:30 +0000 (22:38 -0500)
committerDan Callahan <dan.callahan@gmail.com>
Sat, 4 Apr 2015 03:48:00 +0000 (22:48 -0500)
commitcb1e6a2dc4f5ceba68b52f7d088a9e571948f765
tree646ef3715873421105624b9046d0256b79951c55
parent80def6c2447d23a624e611417f24cf0ab2a5a676
book: use `mod test` consistently

Fixes #24030

Of the four code samples with modules in TRPL:

    - 2 use `mod test`
    - 2 use `mod tests`

We should be consistent here, but which is right? The stdlib is split:

    $ grep -r 'mod tests {' src/lib* | wc -l
          63
    $ grep -r 'mod test {'  src/lib* | wc -l
          58

Subjectively, I like the plural, but both the language reference and the
style guide recommend the singular. So we'll go with that here, for now.
src/doc/trpl/benchmark-tests.md
src/doc/trpl/testing.md