doc(crypto-js): Update documentation.

This commit is contained in:
Ivan Enderlin
2022-05-30 17:47:11 +02:00
parent 1ecf90bb42
commit 7c85fdaf28
@@ -16,10 +16,7 @@ pub struct DeviceLists {
impl DeviceLists {
/// Create an empty `DeviceLists`.
///
/// `changed` and `left` must be an array of strings representing
/// a user ID. Ideally, we should pass a `UserId` object instance,
/// but it's a limitation of `wasm-bindgen` (a workaround is
/// possible but it will slow down performance).
/// `changed` and `left` must be an array of `UserId`.
#[wasm_bindgen(constructor)]
pub fn new(changed: Array, left: Array) -> Result<DeviceLists, JsError> {
let mut inner = ruma::api::client::sync::sync_events::v3::DeviceLists::default();