Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for notPercentDStruct (0.15 sec)

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

    	Printf("%d", percentDV)
    	Printf("%d", &percentDV)
    	Printf("%d", notPercentDV)  // ERROR "Printf format %d has arg notPercentDV of wrong type .*print.notPercentDStruct"
    	Printf("%d", &notPercentDV) // ERROR "Printf format %d has arg &notPercentDV of wrong type \*.*print.notPercentDStruct"
    	Printf("%p", &notPercentDV) // Works regardless: we print it as a pointer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
Back to top