Merge pull request #3191 from mirkomartn/fix-doc

embassy-net: fix minor typo in doc
This commit is contained in:
Dario Nieuwenhuis 2024-07-18 11:49:38 +00:00 committed by GitHub
commit 14de5e5a3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -414,7 +414,7 @@ impl<D: Driver> Stack<D> {
/// ```ignore /// ```ignore
/// let config = embassy_net::Config::dhcpv4(Default::default()); /// let config = embassy_net::Config::dhcpv4(Default::default());
///// Init network stack ///// Init network stack
/// static RESOURCES: StaticCell<embassy_net::StackResources<2> = StaticCell::new(); /// static RESOURCES: StaticCell<embassy_net::StackResources<2>> = StaticCell::new();
/// static STACK: StaticCell<embassy_net::Stack> = StaticCell::new(); /// static STACK: StaticCell<embassy_net::Stack> = StaticCell::new();
/// let stack = &*STACK.init(embassy_net::Stack::new( /// let stack = &*STACK.init(embassy_net::Stack::new(
/// device, /// device,