Skip to content

Commit da0844e

Browse files
committed
updated record plaintext docstrings
1 parent 16e106c commit da0844e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

wasm/src/record/record_plaintext.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,19 @@ impl RecordPlaintext {
6767

6868
/// Return a record plaintext from a string.
6969
///
70-
/// @param {string} record String representation of a plaintext representation of an Aleo record
70+
/// @param {string} record String representation of a plaintext representation of an Aleo record.
71+
///
7172
/// @returns {RecordPlaintext} Record plaintext
7273
#[wasm_bindgen(js_name = fromString)]
7374
pub fn from_string(record: &str) -> Result<RecordPlaintext, String> {
7475
Self::from_str(record).map_err(|_| "The record plaintext string provided was invalid".into())
7576
}
7677

77-
// Get a record plaintext from
78+
/// Get the record entry matching a key.
79+
///
80+
/// @param {string} input The key to retrieve the value in the record data field.
81+
///
82+
/// @returns {Plaintext} The plaintext value corresponding to the key.
7883
#[wasm_bindgen(js_name = getMember)]
7984
pub fn get_member(&self, input: String) -> Result<Plaintext, String> {
8085
let entry = self

0 commit comments

Comments
 (0)