Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for empty (0.2 sec)

  1. src/bytes/buffer_test.go

    }
    
    // Empty buf through repeated reads into fub.
    // The initial contents of buf corresponds to the string s.
    func empty(t *testing.T, testname string, buf *Buffer, s string, fub []byte) {
    	check(t, testname+" (empty 1)", buf, s)
    
    	for {
    		n, err := buf.Read(fub)
    		if n == 0 {
    			break
    		}
    		if err != nil {
    			t.Errorf(testname+" (empty 2): err should always be nil, found err == %s", err)
    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

    </p>
    
    <p>
    A <a href="#Blocks">statement list</a> ends in a terminating statement if the list
    is not empty and its final non-empty statement is terminating.
    </p>
    
    
    <h3 id="Empty_statements">Empty statements</h3>
    
    <p>
    The empty statement does nothing.
    </p>
    
    <pre class="ebnf">
    EmptyStmt = .
    </pre>
    
    
    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