Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for errata (0.3 sec)

  1. src/bytes/bytes_test.go

    	}
    
    	for i, tt := range tests {
    		err := repeat([]byte(tt.s), tt.count)
    		if tt.errStr == "" {
    			if err != nil {
    				t.Errorf("#%d panicked %v", i, err)
    			}
    			continue
    		}
    
    		if err == nil || !strings.Contains(err.Error(), tt.errStr) {
    			t.Errorf("#%d expected %q got %q", i, tt.errStr, err)
    		}
    	}
    }
    
    func runesEqual(a, b []rune) bool {
    	if len(a) != len(b) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. src/archive/tar/tar_test.go

    	}
    	if !reflect.DeepEqual(rHdr, hdr) {
    		t.Errorf("Header mismatch.\n got %+v\nwant %+v", rHdr, hdr)
    	}
    	rData, err := io.ReadAll(tr)
    	if err != nil {
    		t.Fatalf("Read: %v", err)
    	}
    	if !bytes.Equal(rData, data) {
    		t.Errorf("Data mismatch.\n got %q\nwant %q", rData, data)
    	}
    }
    
    type headerRoundTripTest struct {
    	h  *Header
    	fm fs.FileMode
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  3. doc/go_mem.html

    in that most races have a limited number of outcomes,
    and less like C and C++, where the meaning of any program with a race
    is entirely undefined, and the compiler may do anything at all.
    Go's approach aims to make errant programs more reliable and easier to debug,
    while still insisting that races are errors and that tools can diagnose and report them.
    </p>
    
    <h2 id="model">Memory Model</h2>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top