From d01f1314b7f1f29fbb7352becad7caa821774227 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 23 May 2020 13:19:57 +0200 Subject: [PATCH] Improve E0601 explanation --- src/librustc_error_codes/error_codes/E0601.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/librustc_error_codes/error_codes/E0601.md b/src/librustc_error_codes/error_codes/E0601.md index 8180c5db46f..7194b7971d3 100644 --- a/src/librustc_error_codes/error_codes/E0601.md +++ b/src/librustc_error_codes/error_codes/E0601.md @@ -1,5 +1,6 @@ -No `main` function was found in a binary crate. To fix this error, add a -`main` function. For example: +No `main` function was found in a binary crate. + +To fix this error, add a `main` function: ``` fn main() {