Skip to content

Commit 1c1432e

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Merge branch 'kegilbert-patch-6-1' of ssh://github.com/ARMmbed/mbed-os into rollup
2 parents 005bad6 + 1f9ef36 commit 1c1432e

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

platform/DirHandle.h

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,24 @@ namespace mbed {
3030
*/
3131

3232

33-
/** Represents a directory stream. Objects of this type are returned
34-
* by an opendir function. The core functions are read and seek,
33+
/** Represents a directory stream. An opendir function returns
34+
* objects of this type. The core functions are read and seek,
3535
* but only a subset needs to be provided.
3636
*
37-
* If a FileSystemLike class defines the opendir method, then the
38-
* directories of an object of that type can be accessed by
39-
* DIR *d = opendir("/example/directory") (or opendir("/example")
40-
* to open the root of the filesystem), and then using readdir(d) etc.
37+
* If a FileSystemLike class defines the opendir method, then you
38+
* can access the directories of an object of that type by either:
39+
* @code
40+
* DIR *d = opendir("/example/directory");
41+
* @endcode
42+
* or
43+
* @code
44+
* DIR *d = opendir("/example");
45+
* @endcode
46+
* to open the root of the file system.
4147
*
4248
* The root directory is considered to contain all FileHandle and
43-
* FileSystem objects, so the DIR* returned by opendir("/") will
44-
* reflect this.
49+
* FileSystem objects, so the DIR pointer returned by opendir("/")
50+
* reflects this.
4551
*
4652
* @note to create a directory, @see Dir
4753
* @note Synchronization level: Set by subclass
@@ -113,7 +119,7 @@ class DirHandle : private NonCopyable<DirHandle> {
113119
return close();
114120
};
115121

116-
/** Return the directory entry at the current position, and
122+
/** Returns the directory entry at the current position, and
117123
* advances the position to the next entry.
118124
*
119125
* @returns

0 commit comments

Comments
 (0)