all: update URLs in comments

This commit is contained in:
Hajime Hoshi 2022-11-21 01:46:50 +09:00
parent e9e5d27d2c
commit f129c23393
4 changed files with 4 additions and 4 deletions

View File

@ -763,7 +763,7 @@ const license = `// Copyright 2013 The Ebitengine Authors
` `
func main() { func main() {
// Follow the standard comment rule (https://golang.org/s/generatedcode). // Follow the standard comment rule (https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source).
doNotEdit := "// Code generated by genkeys.go using 'go generate'. DO NOT EDIT." doNotEdit := "// Code generated by genkeys.go using 'go generate'. DO NOT EDIT."
ebitengineKeyNames := []string{} ebitengineKeyNames := []string{}

View File

@ -22,6 +22,6 @@ var initTime = time.Now()
func now() int64 { func now() int64 {
// time.Since() returns monotonic timer difference (#875): // time.Since() returns monotonic timer difference (#875):
// https://golang.org/pkg/time/#hdr-Monotonic_Clocks // https://pkg.go.dev/time#hdr-Monotonic_Clocks
return int64(time.Since(initTime)) return int64(time.Since(initTime))
} }

View File

@ -450,7 +450,7 @@ func (cs *compileState) parseStmt(block *block, fname string, stmt ast.Stmt, inP
if len(stmt.Results) != len(outParams) && len(stmt.Results) != 1 { if len(stmt.Results) != len(outParams) && len(stmt.Results) != 1 {
if !(len(stmt.Results) == 0 && len(outParams) > 0 && outParams[0].name != "") { if !(len(stmt.Results) == 0 && len(outParams) > 0 && outParams[0].name != "") {
// TODO: Check variable shadowings. // TODO: Check variable shadowings.
// https://golang.org/ref/spec#Return_statements // https://go.dev/ref/spec#Return_statements
cs.addError(stmt.Pos(), fmt.Sprintf("the number of returning variables must be %d but %d", len(outParams), len(stmt.Results))) cs.addError(stmt.Pos(), fmt.Sprintf("the number of returning variables must be %d but %d", len(outParams), len(stmt.Results)))
return nil, false return nil, false
} }

View File

@ -483,7 +483,7 @@ func Fragment(position vec4, texCoord vec2, color vec4) vec4 {
} }
// Increment statement treats a variable 'used'. // Increment statement treats a variable 'used'.
// https://play.golang.org/p/2RuYMrSLjt3 // https://go.dev/play/p/2RuYMrSLjt3
if _, err := compileToIR([]byte(`package main if _, err := compileToIR([]byte(`package main
func Fragment(position vec4, texCoord vec2, color vec4) vec4 { func Fragment(position vec4, texCoord vec2, color vec4) vec4 {