]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/entry.rs
Various minor/cosmetic improvements to code
[rust.git] / src / librustc / middle / entry.rs
index 93fe607f5fa1499ca0882b8ffd42ca6a1f89ab90..60ddf60cde2cf766ae196ff33424b0bb1fbd4e73 100644 (file)
@@ -87,7 +87,7 @@ pub fn find_entry_point(session: &Session,
     configure_main(&mut ctxt, crate_name);
 }
 
-// Beware, this is duplicated in libsyntax/entry.rs, make sure to keep
+// Beware, this is duplicated in `libsyntax/entry.rs`, so make sure to keep
 // them in sync.
 fn entry_point_type(item: &Item, at_root: bool) -> EntryPointType {
     match item.node {
@@ -98,7 +98,7 @@ fn entry_point_type(item: &Item, at_root: bool) -> EntryPointType {
                 EntryPointType::MainAttr
             } else if item.name == "main" {
                 if at_root {
-                    // This is a top-level function so can be 'main'
+                    // This is a top-level function so can be 'main'.
                     EntryPointType::MainNamed
                 } else {
                     EntryPointType::OtherMain