Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AppendsTest (0.12 sec)

  1. src/cmd/vet/testdata/appends/appends.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the appends checker.
    
    package appends
    
    func AppendsTest() {
    	sli := []string{"a", "b", "c"}
    	sli = append(sli) // ERROR "append with no values"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 20:55:20 UTC 2023
    - 338 bytes
    - Viewed (0)
Back to top