1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vdoc: highlight inline examples for -f html (#13879)

This commit is contained in:
Nick Treleaven
2022-03-31 17:32:32 +01:00
committed by GitHub
parent 5c43493183
commit a87cd9663e
6 changed files with 9 additions and 9 deletions

View File

@ -690,7 +690,7 @@ pub fn (a array) filter(predicate fn (voidptr) bool) array
// Example: array.any(it.name == 'Bob') // will yield `true` if any element has `.name == 'Bob'`
pub fn (a array) any(predicate fn (voidptr) bool) bool
// all tests whether all elements in the array pass the test
// all tests whether all elements in the array pass the test.
// Ignore the function signature. `all` does not take an actual callback. Rather, it
// takes an `it` expression.
// It returns `false` if any element fails the test. Otherwise,