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

builtin: document all functions in string.v (#7273)

This commit is contained in:
Larpon
2020-12-12 11:10:29 +01:00
committed by GitHub
parent df27a2b8d2
commit 1ff6230062
2 changed files with 176 additions and 44 deletions

View File

@ -63,10 +63,7 @@ fn report_undocumented_functions_in_path(opt Options, path string) {
if !line_above.starts_with('//') {
mut tags := []string{}
mut grab := true
if line_above.starts_with('[') { // One or more tags
tags << collect_tags(line_above)
}
for j := i - 2; j >= 0; j-- {
for j := i - 1; j >= 0; j-- {
prev_line := lines[j]
if prev_line.contains('}') { // We've looked back to the above scope, stop here
break