Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TwoLines (0.07 sec)

  1. src/fmt/scan_test.go

    	}
    	if a != "αb" {
    		t.Errorf("expected αb; got %q", a)
    	}
    }
    
    type TwoLines string
    
    // Scan attempts to read two lines into the object. Scanln should prevent this
    // because it stops at newline; Scan and Scanf should be fine.
    func (t *TwoLines) Scan(state ScanState, verb rune) error {
    	chars := make([]rune, 0, 100)
    	for nlCount := 0; nlCount < 2; {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 20:25:13 UTC 2023
    - 39.3K bytes
    - Viewed (0)
Back to top