Skip to content

Commit

Permalink
Merge pull request #150 from waywardmonkeys/fix-typos
Browse files Browse the repository at this point in the history
Fix typos.
  • Loading branch information
pchickey authored Jul 15, 2024
2 parents ab6d65d + 4967708 commit fe0ebbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ semantics of path lookup, and the semantics of files, directories, and
symlinks, and the constraints on filesystem paths, is host-dependent.

WASI filesystem is not intended to be used as a virtual API for accessing
arbitary resources. Unix's "everything is a file" philosophy is in conflict
arbitrary resources. Unix's "everything is a file" philosophy is in conflict
with the goals of supporting modularity and the principle of least authority.

Many of the ideas related to doing capability-based filesystem sandboxing with
Expand Down Expand Up @@ -94,7 +94,7 @@ fn write_hello_world_to_a_file(dir: Descriptor) -> Result<(), Errno> {
while !view.is_empty() {
let num_written = file.pwrite(view.to_owned(), 0)?;
offset += num_written;
view = &view[num_writen..];
view = &view[num_written..];
}
// The file descriptor is closed when it's dropped!
}
Expand Down Expand Up @@ -141,7 +141,7 @@ case-insensitivity on a case-sensitive filesystem, are both tricky to do.

One issue is that case insensitivity depends on a Unicode version, so the
details can differ between different case-insensitive platforms. Another
issue is tha WASI filesystem in general can't assume it has exclusive access
issue is the WASI filesystem in general can't assume it has exclusive access
to the filesystem, so approaches that involve checking for files with names
that differ only by case can race with other processes creating new files.

Expand Down
2 changes: 1 addition & 1 deletion imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ requirement.</p>
</li>
<li>
<p><a name="descriptor_flags.requested_write_sync"></a><code>requested-write-sync</code>: </p>
<p>Requests that reads be performed at the same level of integrety
<p>Requests that reads be performed at the same level of integrity
requested for writes. This is similar to `O_RSYNC` in POSIX.
<p>The precise semantics of this operation have not yet been defined for
WASI. At this time, it should be interpreted as a request, and not a
Expand Down
2 changes: 1 addition & 1 deletion wit/types.wit
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ interface types {
/// WASI. At this time, it should be interpreted as a request, and not a
/// requirement.
data-integrity-sync,
/// Requests that reads be performed at the same level of integrety
/// Requests that reads be performed at the same level of integrity
/// requested for writes. This is similar to `O_RSYNC` in POSIX.
///
/// The precise semantics of this operation have not yet been defined for
Expand Down

0 comments on commit fe0ebbc

Please sign in to comment.