fix(storage/vfs): Fix typo in code snippet in docs

This commit is contained in:
Tomáš Rohlínek
2025-10-15 10:08:52 +02:00
parent fe2cc0a64c
commit a43526d303
2 changed files with 4 additions and 4 deletions

View File

@@ -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;