[librsvg: 1/5] Clarify docs for acquire_data and acquire_stream
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/5] Clarify docs for acquire_data and acquire_stream
- Date: Wed, 17 Mar 2021 19:21:48 +0000 (UTC)
commit ced93446a50aa387a6d2918952b0ddea8033ea94
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Mar 17 12:24:07 2021 -0600
Clarify docs for acquire_data and acquire_stream
src/io.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/io.rs b/src/io.rs
index fff43cbf..dbdf3dfd 100644
--- a/src/io.rs
+++ b/src/io.rs
@@ -53,7 +53,7 @@ fn decode_data_uri(uri: &str) -> Result<BinaryData, IoError> {
})
}
-/// Returns an input stream. The url can be a data: URL or a plain URI
+/// Creates a stream for reading. The url can be a data: URL or a plain URI.
pub fn acquire_stream(
aurl: &AllowedUrl,
cancellable: Option<&Cancellable>,
@@ -81,7 +81,7 @@ pub fn acquire_stream(
}
}
-/// Returns a chunk of data. The url can be a data: URL or a plain URI
+/// Reads the entire contents pointed by an URL. The url can be a data: URL or a plain URI.
pub fn acquire_data(
aurl: &AllowedUrl,
cancellable: Option<&Cancellable>,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]