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;