Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IndexRune (0.05 sec)

  1. doc/go1.17_spec.html

    result parameters, the function body's statement list must end in
    a <a href="#Terminating_statements">terminating statement</a>.
    </p>
    
    <pre>
    func IndexRune(s string, r rune) int {
    	for i, c := range s {
    		if c == r {
    			return i
    		}
    	}
    	// invalid: missing return statement
    }
    </pre>
    
    <p>
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top