Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Err (0.12 sec)

  1. src/bytes/buffer_test.go

    	// after successful read
    	if _, err := b.ReadBytes('m'); err != nil {
    		t.Fatalf("ReadBytes: %v", err)
    	}
    	if err := b.UnreadByte(); err != nil {
    		t.Fatalf("UnreadByte: %v", err)
    	}
    	c, err := b.ReadByte()
    	if err != nil {
    		t.Fatalf("ReadByte: %v", err)
    	}
    	if c != 'm' {
    		t.Errorf("ReadByte = %q; want %q", c, 'm')
    	}
    }
    
    // Tests that we occasionally compact. Issue 5154.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    with the same name as a result parameter is in
    <a href="#Declarations_and_scope">scope</a> at the place of the return.
    </p>
    
    <pre>
    func f(n int) (res int, err error) {
    	if _, err := f(n-1); err != nil {
    		return  // invalid return statement: err is shadowed
    	}
    	return
    }
    </pre>
    
    <h3 id="Break_statements">Break statements</h3>
    
    <p>
    A "break" statement terminates execution of the innermost
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top