Skip to content

Commit

Permalink
Fix rust code in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcvz committed Apr 16, 2024
1 parent 80f637b commit 75dd7af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ impl Device {
///
/// Example:
/// ```rust
/// Device::set_default(Device::new(DeviceType::Cpu, 1));
/// use mlx::device::{Device, DeviceType};
/// Device::set_default(&Device::new(DeviceType::Cpu, 1));
/// ```
///
/// By default, this is `gpu()`.
Expand Down

0 comments on commit 75dd7af

Please sign in to comment.