From 811dd2584ca6d5bdfa1961672e7647c88898ab4a Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 4 Mar 2009 20:39:39 -0800 Subject: [PATCH] fix an HTML glitch. say a little more about package main. R=rsc DELTA=7 (4 added, 0 deleted, 3 changed) OCL=25725 CL=25725 --- doc/go_spec.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index b5d2c798e7f..13fff2efe28 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -2252,8 +2252,8 @@ s[1] == 3

The slice length must be non-negative. For arrays or strings, the indexes -

  • lo
  • and
  • hi
  • must satisfy -0 <=
  • lo
  • <=
  • hi
  • <= length; +lo and hi must satisfy +0 <= lo <= hi <= length; for slices, the upper bound is the capacity rather than the length.

    If the sliced operand is a string, the result of the slice operation is another, new @@ -3785,7 +3785,7 @@ m := make(map[string] int, 100); # map with initial space for 100 elements

    Go programs are constructed by linking together packages. A package is in turn constructed from one or more source files that -together provide an interface to a set of types, constants, functions, +together provide access to a set of types, constants, functions, and variables. Those elements may be imported and used in another package.

    @@ -4072,6 +4072,10 @@ invoking main.main().

    When main.main() returns, the program exits.

    +

    +Implementation restriction: The compiler assumes package main +is created by a single source file and that it is not imported by any other package. +