Put the example code in code tags

This commit is contained in:
ssnover 2023-08-15 13:28:26 -06:00
parent bd166e4597
commit d49288d437

View file

@ -24,6 +24,7 @@
//! //!
//! # Examples //! # Examples
//! TODO: Fix once new API has stabilized a bit //! TODO: Fix once new API has stabilized a bit
//! ```rust
//! use rs_matter::{Matter, CommissioningData}; //! use rs_matter::{Matter, CommissioningData};
//! use rs_matter::data_model::device_types::device_type_add_on_off_light; //! use rs_matter::data_model::device_types::device_type_add_on_off_light;
//! use rs_matter::data_model::cluster_basic_information::BasicInfoConfig; //! use rs_matter::data_model::cluster_basic_information::BasicInfoConfig;
@ -65,6 +66,7 @@
//! } //! }
//! // Start the Matter Daemon //! // Start the Matter Daemon
//! // matter.start_daemon().unwrap(); //! // matter.start_daemon().unwrap();
//! ```
//! //!
//! Start off exploring by going to the [Matter] object. //! Start off exploring by going to the [Matter] object.
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]