diff --git a/doc/go_spec.html b/doc/go_spec.html index 9f29989d05..95406a1687 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -129,27 +129,27 @@ hex_digit = "0" … "9" | "A" … "F" | "a" … "f" .

Comments

-There are two forms of comments: +Comments serve as program documentation. There are two forms:

  1. Line comments start with the character sequence // -and stop at the end of the line. A line comment acts like a newline. +and stop at the end of the line.
  2. General comments start with the character sequence /* -and continue through the character sequence */. A general -comment containing one or more newlines acts like a newline, otherwise it acts -like a space. +and stop with the first subsequent character sequence */.

-Comments do not nest. +A comment cannot start inside a rune or +string literal, or inside a comment. +A general comment containing no newlines acts like a space. +Any other comment acts like a newline.

-

Tokens

@@ -176,11 +176,8 @@ using the following two rules:

  1. -

    When the input is broken into tokens, a semicolon is automatically inserted -into the token stream at the end of a non-blank line if the line's final -token is -

    +into the token stream immediately after a line's final token if that token is