Skip to content

Commit

Permalink
fixed typo in rust doc that caused doc test to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras committed Dec 13, 2023
1 parent a00469b commit 9a3b873
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frida/src/device_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,14 @@ impl<'a> DeviceManager<'a> {
/// Returns the device with the specified id.
///
/// # Example
/// ```
///
/// let frida = unsafe { frida::Frida::obtain() };
/// let device_manager = frida::DeviceManager::obtain(&frida);
///
/// let id = "<some id>";
/// let device = device_manager.get_device_by_id(id).unwrap();
/// assert_eq!(device.get_id(), id);
/// ```
///
pub fn get_device_by_id(&'a self, device_id: &str) -> Result<Device<'a>> {
let mut error: *mut frida_sys::GError = std::ptr::null_mut();
let cstring = CString::new(device_id).unwrap();
Expand Down

0 comments on commit 9a3b873

Please sign in to comment.