mirror of
https://github.com/esphome/esphome.git
synced 2025-11-16 14:55:50 +00:00
[ai] simplify namespace syntax (#11824)
This commit is contained in:
@@ -172,8 +172,7 @@ This document provides essential context for AI models interacting with this pro
|
|||||||
|
|
||||||
* **C++ Class Pattern:**
|
* **C++ Class Pattern:**
|
||||||
```cpp
|
```cpp
|
||||||
namespace esphome {
|
namespace esphome::my_component {
|
||||||
namespace my_component {
|
|
||||||
|
|
||||||
class MyComponent : public Component {
|
class MyComponent : public Component {
|
||||||
public:
|
public:
|
||||||
@@ -189,8 +188,7 @@ This document provides essential context for AI models interacting with this pro
|
|||||||
int param_{0};
|
int param_{0};
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace my_component
|
} // namespace esphome::my_component
|
||||||
} // namespace esphome
|
|
||||||
```
|
```
|
||||||
|
|
||||||
* **Common Component Examples:**
|
* **Common Component Examples:**
|
||||||
|
|||||||
Reference in New Issue
Block a user