diff --git a/doc/go_spec.html b/doc/go_spec.html index fb4341be1d..89732fb8f2 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -1257,11 +1257,19 @@ non-blank name.
-// A simple File interface
+// A simple File interface.
interface {
- Read(b Buffer) bool
- Write(b Buffer) bool
- Close()
+ Read([]byte) (int, error)
+ Write([]byte) (int, error)
+ Close() error
+}
+
+
+
+interface {
+ String() string
+ String() string // illegal: String not unique
+ _(x int) // illegal: method must have non-blank name
}
@@ -1272,9 +1280,9 @@ have the method set
-func (p T) Read(b Buffer) bool { return … }
-func (p T) Write(b Buffer) bool { return … }
-func (p T) Close() { … }
+func (p T) Read(p []byte) (n int, err error) { return … }
+func (p T) Write(p []byte) (n int, err error) { return … }
+func (p T) Close() error { return … }