From 99dcfc522ec871e33766417b0360c9c93374d3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Rohl=C3=ADnek?= Date: Wed, 15 Oct 2025 10:08:52 +0200 Subject: [PATCH] fix(storage/vfs): Fix typo in code snippet in docs --- docs/en/api-reference/storage/vfs.rst | 4 ++-- docs/zh_CN/api-reference/storage/vfs.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/api-reference/storage/vfs.rst b/docs/en/api-reference/storage/vfs.rst index 46819e3767..f9e0d87ddc 100644 --- a/docs/en/api-reference/storage/vfs.rst +++ b/docs/en/api-reference/storage/vfs.rst @@ -29,7 +29,7 @@ To register an FS driver, an application needs to define an instance of the :cpp // Both esp_vfs_fs_ops_t and its subcomponents have to have static storage static const esp_vfs_dir_ops_t myfs_dir = { - .fstat = &myfs_fstat, + .stat = &myfs_stat, }; static const esp_vfs_fs_ops_t myfs = { @@ -55,7 +55,7 @@ The recommended approach for registering filesystem is to use statically allocat // Possibly local scope { esp_vfs_dir_ops_t myfs_dir = { - .fstat = &myfs_fstat, + .stat = &myfs_stat, }; bool some_condition = false; diff --git a/docs/zh_CN/api-reference/storage/vfs.rst b/docs/zh_CN/api-reference/storage/vfs.rst index e2b194e370..74e19ba49d 100644 --- a/docs/zh_CN/api-reference/storage/vfs.rst +++ b/docs/zh_CN/api-reference/storage/vfs.rst @@ -29,7 +29,7 @@ VFS 组件支持 C 库函数(如 fopen 和 fprintf 等)与文件系统 (FS) // esp_vfs_fs_ops_t 及其子组件的声明必须是静态的 static const esp_vfs_dir_ops_t myfs_dir = { - .fstat = &myfs_fstat, + .stat = &myfs_stat, }; static const esp_vfs_fs_ops_t myfs = { @@ -55,7 +55,7 @@ VFS 组件支持 C 库函数(如 fopen 和 fprintf 等)与文件系统 (FS) // 可能是局部作用域 { esp_vfs_dir_ops_t myfs_dir = { - .fstat = &myfs_fstat, + .stat = &myfs_stat, }; bool some_condition = false;