- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Terminating_statements (0.28 sec)
-
doc/go1.17_spec.html
FunctionName = identifier . FunctionBody = Block . </pre> <p> If the function's <a href="#Function_types">signature</a> declares 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
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
FunctionName = identifier . FunctionBody = Block . </pre> <p> If the function's <a href="#Function_types">signature</a> declares 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
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu May 02 22:43:51 GMT 2024 - 279.6K bytes - Viewed (0)