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 799c800494
commit 99dcfc522e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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;
+2 -2
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;