Skip to content

Commit

Permalink
Typo fix (#440)
Browse files Browse the repository at this point in the history
typo: fore -> for
  • Loading branch information
qrilka authored Feb 19, 2024
1 parent a823fab commit 70c122c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/file/src/file_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pub mod futures {
/// Returns the contents of `blob` as a text string.
///
/// Equivalent to `async fn read_as_text(blob: &Blob) -> Result<String, FileReadError>` but
/// without borrowing the `Blob` fore the lifetime of the future.
/// without borrowing the `Blob` for the lifetime of the future.
pub fn read_as_text(blob: &Blob) -> impl Future<Output = Result<String, FileReadError>> {
let (sender, receiver) = futures_channel::oneshot::channel();
let reader = super::callbacks::read_as_text(blob, |result| {
Expand All @@ -167,7 +167,7 @@ pub mod futures {
/// Returns the contents of `blob` as a base64 encoded `data:` URL.
///
/// Equivalent to `async fn read_as_data_url(blob: &Blob) -> Result<String, FileReadError>` but
/// without borrowing the `Blob` fore the lifetime of the future.
/// without borrowing the `Blob` for the lifetime of the future.
pub fn read_as_data_url(blob: &Blob) -> impl Future<Output = Result<String, FileReadError>> {
let (sender, receiver) = futures_channel::oneshot::channel();
let reader = super::callbacks::read_as_data_url(blob, |result| {
Expand Down

0 comments on commit 70c122c

Please sign in to comment.