From 17f9de387ad30030731098e9b5c2cca727095984 Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Sun, 23 Nov 2014 14:43:22 +0100 Subject: [PATCH] Fix the reason for calling a file lib.rs --- src/doc/guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index db97fc06444..270cdfae04d 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -3125,8 +3125,8 @@ pub fn add_three_times_four(x: int) -> int { } ``` -We're calling this file `lib.rs` because it has the same name as our project, -and so it's named this, by convention. +We're calling this file `lib.rs`, because Cargo uses that filename as the crate +root by convention. We'll then need to use this crate in our `src/main.rs`: