- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Terminating_statements (0.08 sec)
-
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
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue May 06 19:12:15 UTC 2025 - 286.2K bytes - Viewed (0)