summaryrefslogtreecommitdiff
path: root/doc/classes/DirAccess.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/DirAccess.xml')
-rw-r--r--doc/classes/DirAccess.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/DirAccess.xml b/doc/classes/DirAccess.xml
index ddb98030eb..de2e32b17b 100644
--- a/doc/classes/DirAccess.xml
+++ b/doc/classes/DirAccess.xml
@@ -27,7 +27,7 @@
[csharp]
public void DirContents(string path)
{
- var dir = DirAccess.Open(path);
+ using var dir = DirAccess.Open(path);
if (dir != null)
{
dir.ListDirBegin();