Skip to content

Commit 23c7d45

Browse files
quark-zjufacebook-github-bot
authored andcommitted
spell: autofix spells using codespell dictionary
Summary: Changes are made by: ~/eden % yes | arc lint --take SPELL $(hg files .) (with the lint config change in the next diff) Reviewed By: zzl0 Differential Revision: D70758994 fbshipit-source-id: e48ee9c93038dcb17f34c49d1da86d43230e5ff9
1 parent d684ca2 commit 23c7d45

16 files changed

+22
-22
lines changed

eden/common/telemetry/RequestMetricsScope.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ RequestMetricsScope::DefaultRequestDuration RequestMetricsScope::getMaxDuration(
126126
return RequestMetricsScope::DefaultRequestDuration{0};
127127
}
128128

129-
// By virtue of enqueing new watches at the end of the list, the front will
129+
// By virtue of enqueuing new watches at the end of the list, the front will
130130
// always be the watch that has been in the list the longest, ie: the one
131131
// with the max duration.
132132
return lockedWatches->front().elapsed();

eden/common/telemetry/Tracing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct CompactTracePoint {
3131
// Opaque identifier for this "block" where a block is some logical
3232
// piece of work with a well-defined start and stop point
3333
uint64_t blockId;
34-
// Opaque identifer for the parent block from which the current
34+
// Opaque identifier for the parent block from which the current
3535
// block was constructed - used to create causal relationships
3636
// between blocks
3737
uint64_t parentBlockId;

eden/common/utils/DirType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace facebook::eden {
3232

3333
#ifdef _WIN32
3434
/**
35-
* Convertion between st_mode and d_type on Windows. On Windows the 4th nibble
35+
* Conversion between st_mode and d_type on Windows. On Windows the 4th nibble
3636
* of mode contains the type of directory entry. Right shifting by 12 bits to
3737
* form a d_type.
3838
*/

eden/common/utils/FileDescriptor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct OpenFileHandleOptions {
3030
// Has no meaning on win32. On posix systems, will be modified by umask(2).
3131
int createMode;
3232

33-
// Convervative defaults won't follow symlinks and won't be inherited
33+
// Conservative defaults won't follow symlinks and won't be inherited
3434
OpenFileHandleOptions()
3535
: followSymlinks(0),
3636
closeOnExec(1),

eden/common/utils/FileUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct REPARSE_DATA_BUFFER {
111111
} MountPointReparseBuffer;
112112
struct {
113113
// The format here is not officially documented, so this format is what
114-
// we have infered from our own local testing, and what's mentioned on
114+
// we have inferred from our own local testing, and what's mentioned on
115115
// github: https://github.com/microsoft/ProjFS-Managed-API/issues/55
116116
UINT UnknownMaybeVersion;
117117
BYTE ProjFsFlags;

eden/common/utils/ImmediateFuture.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class ImmediateFuture {
294294
EagerSemiFuture,
295295
/**
296296
* The SemiFuture is never considered ready even if it is. This can be used
297-
* to force lazyness by ImmediateFuture users. Prefer using
297+
* to force laziness by ImmediateFuture users. Prefer using
298298
* makeNotReadyImmediateFuture to obtain a lazy behavior.
299299
*/
300300
LazySemiFuture,

eden/common/utils/IoFuture.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ FOLLY_NODISCARD folly::Future<int> waitForIO(
4242
* A helper class to provide a folly::Future that completes when a socket is
4343
* ready for I/O.
4444
*
45-
* This is similar to use waitForIO(), but can be re-used multiple times if you
45+
* This is similar to use waitForIO(), but can be reused multiple times if you
4646
* need to repeatedly wait for I/O.
4747
*/
4848
class IoFuture : private folly::EventHandler, private folly::AsyncTimeout {

eden/common/utils/PathFuncs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ AbsolutePath canonicalPathImpl(
164164
}
165165

166166
// Get the components from the base path
167-
// For simplicity we are just re-using canonicalPathData() even though the
167+
// For simplicity we are just reusing canonicalPathData() even though the
168168
// base path is guaranteed to already be in canonical form.
169169
CanonicalData baseCanon;
170170
AbsolutePath cwd;

eden/common/utils/PathFuncs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ class AbsolutePathBase : public ComposedPathBase<
17311731
* "bar/baz"
17321732
* "baz"
17331733
*
1734-
* When iterating in reverse it yeilds:
1734+
* When iterating in reverse it yields:
17351735
* "baz"
17361736
* "bar/baz"
17371737
* "foo/bar/baz"
@@ -2056,7 +2056,7 @@ AbsolutePath getcwd();
20562056
* This removes duplicate "/" characters, and resolves "/./" and "/../"
20572057
* components.
20582058
*
2059-
* Note that we intentially convert a leading "//" to "/
2059+
* Note that we intentionally convert a leading "//" to "/
20602060
* (e.g., "//foo" --> "/foo"). (POSIX specifies that a leading "//" has
20612061
* special platform-defined behavior, so other libraries sometimes leave it
20622062
* as-is instead of replacing it with just one "/".)

eden/common/utils/ProcessInfoCache.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@ class ProcessInfoCache {
150150
std::map<pid_t, ProcessName> getAllProcessNames();
151151

152152
/**
153-
* Called occassionally to produce the info of the pid. If the info has
153+
* Called occasionally to produce the info of the pid. If the info has
154154
* already been resolved this returns that info. Otherwise this will return
155155
* nullopt. In the future it may wait for the info to be resolved.
156156
*/
157157
std::optional<ProcessInfo> getProcessInfo(pid_t pid);
158158

159159
/**
160-
* Called occassionally to produce the name of the pid. If the info has
160+
* Called occasionally to produce the name of the pid. If the info has
161161
* already been resolved this returns that info's name. Otherwise this will
162162
* return nullopt.
163163
*/
@@ -166,7 +166,7 @@ class ProcessInfoCache {
166166
/**
167167
* Commandlines (on linux anyways) use \0 instead of spaces to separate
168168
* arguments. sl is often a command we are interested in. and sl also
169-
* doed some funky commandline manipulation that causes a bunch of \0 to be
169+
* does some funky commandline manipulation that causes a bunch of \0 to be
170170
* on the end of their commandline. This will clean those off.
171171
*/
172172
static std::string cleanProcessCommandline(std::string process);

0 commit comments

Comments
 (0)