Unify 'deprecated' comment formats

This commit is contained in:
Hajime Hoshi 2021-07-10 03:19:23 +09:00
parent 431cd33839
commit 6bc22d4587
3 changed files with 5 additions and 5 deletions

View File

@ -488,7 +488,7 @@ const (
KeyMax Key = KeyMeta
// Keys for backward compatibility.
// Deprecated: as of 2.1.0.
// Deprecated: as of v2.1.
{{range $old, $new := .OldEbitenKeyNameToDriverKeyName}}Key{{$old}} Key = Key(driver.Key{{$new}})
{{end}}
)

View File

@ -39,7 +39,7 @@ func AppendInputChars(runes []rune) []rune {
// InputChars return "printable" runes read from the keyboard at the time update is called.
//
// Deprecated: as of v2.2.0. Use AppendInputChars instead.
// Deprecated: as of v2.2. Use AppendInputChars instead.
func InputChars() []rune {
return AppendInputChars(nil)
}
@ -155,7 +155,7 @@ func AppendGamepadIDs(gamepadIDs []GamepadID) []GamepadID {
// GamepadIDs returns a slice indicating available gamepad IDs.
//
// Deprecated: as of v2.2.0. Use AppendGamepadIDs instead.
// Deprecated: as of v2.2. Use AppendGamepadIDs instead.
func GamepadIDs() []GamepadID {
return AppendGamepadIDs(nil)
}
@ -221,7 +221,7 @@ func AppendTouchIDs(touches []TouchID) []TouchID {
// TouchIDs returns the current touch states.
//
// Deperecated: as of v2.2.0. Use AppendTouchIDs instead.
// Deperecated: as of v2.2. Use AppendTouchIDs instead.
func TouchIDs() []TouchID {
return AppendTouchIDs(nil)
}

View File

@ -141,7 +141,7 @@ const (
KeyMax Key = KeyMeta
// Keys for backward compatibility.
// Deprecated: as of 2.1.0.
// Deprecated: as of v2.1.
Key0 Key = Key(driver.KeyDigit0)
Key1 Key = Key(driver.KeyDigit1)
Key2 Key = Key(driver.KeyDigit2)