Skip to content

Commit

Permalink
Typos in comments (#147)
Browse files Browse the repository at this point in the history
and in the imports.md as those comments are duplicated there.
  • Loading branch information
FrankReh authored Dec 3, 2024
1 parent 0f2a9a9 commit 20fc367
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ POSIX.</p>
<p>Return a stream for appending to a file, if available.</p>
<p>May fail with an error-code describing why the file cannot be appended.</p>
<p>Note: This allows using <code>write-stream</code>, which is similar to <code>write</code> with
<code>O_APPEND</code> in in POSIX.</p>
<code>O_APPEND</code> in POSIX.</p>
<h5>Params</h5>
<ul>
<li><a id="method_descriptor_append_via_stream.self"></a><code>self</code>: borrow&lt;<a href="#descriptor"><a href="#descriptor"><code>descriptor</code></a></a>&gt;</li>
Expand Down Expand Up @@ -1284,7 +1284,7 @@ may also include the inode number, device number, birth timestamp, and
other metadata fields that may change when the file is modified or
replaced. It may also include a secret value chosen by the
implementation and not otherwise exposed.</p>
<p>Implementations are encourated to provide the following properties:</p>
<p>Implementations are encouraged to provide the following properties:</p>
<ul>
<li>If the file is not modified or replaced, the computed hash value should
usually not change.</li>
Expand Down Expand Up @@ -1352,7 +1352,7 @@ errors are filesystem-related errors.</p>
----
<h3>Functions</h3>
<h4><a id="get_directories"></a><code>get-directories: func</code></h4>
<p>Return the set of preopened directories, and their path.</p>
<p>Return the set of preopened directories, and their paths.</p>
<h5>Return values</h5>
<ul>
<li><a id="get_directories.0"></a> list&lt;(own&lt;<a href="#descriptor"><a href="#descriptor"><code>descriptor</code></a></a>&gt;, <code>string</code>)&gt;</li>
Expand Down
2 changes: 1 addition & 1 deletion wit/preopens.wit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface preopens {
@since(version = 0.2.0)
use types.{descriptor};

/// Return the set of preopened directories, and their path.
/// Return the set of preopened directories, and their paths.
@since(version = 0.2.0)
get-directories: func() -> list<tuple<descriptor, string>>;
}
4 changes: 2 additions & 2 deletions wit/types.wit
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ interface types {
/// May fail with an error-code describing why the file cannot be appended.
///
/// Note: This allows using `write-stream`, which is similar to `write` with
/// `O_APPEND` in in POSIX.
/// `O_APPEND` in POSIX.
@since(version = 0.2.0)
append-via-stream: func() -> result<output-stream, error-code>;

Expand Down Expand Up @@ -623,7 +623,7 @@ interface types {
/// replaced. It may also include a secret value chosen by the
/// implementation and not otherwise exposed.
///
/// Implementations are encourated to provide the following properties:
/// Implementations are encouraged to provide the following properties:
///
/// - If the file is not modified or replaced, the computed hash value should
/// usually not change.
Expand Down

0 comments on commit 20fc367

Please sign in to comment.