Merge branch 'fix/vfs_new_api_docs_v5.5' into 'release/v5.5'

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

See merge request espressif/esp-idf!46714
This commit is contained in:
Jiang Jiang Jian
2026-04-07 14:51:48 +08:00
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 // Both esp_vfs_fs_ops_t and its subcomponents have to have static storage
static const esp_vfs_dir_ops_t myfs_dir = { static const esp_vfs_dir_ops_t myfs_dir = {
.fstat = &myfs_fstat, .stat = &myfs_stat,
}; };
static const esp_vfs_fs_ops_t myfs = { 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 // Possibly local scope
{ {
esp_vfs_dir_ops_t myfs_dir = { esp_vfs_dir_ops_t myfs_dir = {
.fstat = &myfs_fstat, .stat = &myfs_stat,
}; };
bool some_condition = false; bool some_condition = false;
+2 -2
View File
@@ -29,7 +29,7 @@ VFS 组件支持 C 库函数(如 fopen 和 fprintf 等)与文件系统 (FS)
// esp_vfs_fs_ops_t 及其子组件的声明必须是静态的 // esp_vfs_fs_ops_t 及其子组件的声明必须是静态的
static const esp_vfs_dir_ops_t myfs_dir = { static const esp_vfs_dir_ops_t myfs_dir = {
.fstat = &myfs_fstat, .stat = &myfs_stat,
}; };
static const esp_vfs_fs_ops_t myfs = { static const esp_vfs_fs_ops_t myfs = {
@@ -55,7 +55,7 @@ VFS 组件支持 C 库函数(如 fopen 和 fprintf 等)与文件系统 (FS)
// 可能是局部作用域 // 可能是局部作用域
{ {
esp_vfs_dir_ops_t myfs_dir = { esp_vfs_dir_ops_t myfs_dir = {
.fstat = &myfs_fstat, .stat = &myfs_stat,
}; };
bool some_condition = false; bool some_condition = false;