Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. doc/go_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: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
Back to top