[docs minor] close #16553 (#17612)

Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
This commit is contained in:
flywind 2021-04-02 15:18:40 +08:00 • committed by GitHub
commit 792a03b756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2266,16 +2266,12 @@ iterator walkDir*(dir: string; relative = false, checkDir = false):
## / fileA2.txt ## / fileA2.txt
## ##
## and this code: ## and this code:
## runnableExamples("-r:off"):
## .. code-block:: Nim import std/[strutils, sugar]
## for kind, path in walkDir("dirA"): # note: order is not guaranteed
## echo(path) # this also works at compile time
## assert collect(for k in walkDir("dirA"): k.path).join(" ") ==
## produce this output (but not necessarily in this order!):: "dirA/dirB dirA/dirC dirA/fileA2.txt dirA/fileA1.txt"
## dirA/dirB
## dirA/dirC
## dirA/fileA1.txt
## dirA/fileA2.txt
## ##
## See also: ## See also:
## * `walkPattern iterator <#walkPattern.i,string>`_ ## * `walkPattern iterator <#walkPattern.i,string>`_