vdoc: HTML highlight generic function as function, not name (#13923)

This commit is contained in:
Nick Treleaven 2022-04-03 21:41:02 +01:00 committed by GitHub
parent 44603f8e59
commit d10135e2c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View file

@ -1208,6 +1208,7 @@ pub fn (s string) to_upper() string {
}
// is_upper returns `true` if all characters in the string is uppercase.
// See also: [`byte.is_capital`](#byte.is_capital)
// Example: assert 'HELLO V'.is_upper() == true
[direct_array_access]
pub fn (s string) is_upper() bool {