Skip to content

Commit 87d3170

Browse files
doc/CAPABILITIES.md: fixed warning box
1 parent 37d73f5 commit 87d3170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/CAPABILITIES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ if (wearable.hasCapability<SensorManager>()) {
1515

1616
The difference between `getCapability<T>()` and `requireCapability<T>()` is that the latter throws an exception if the capability is not supported, while the former returns `null`.
1717

18-
[!WARNING]
19-
The old way of checking capabilities using `is <Capability>` is deprecated. Please use `hasCapability<T>()` instead.
18+
> [!WARNING]
19+
> The old way of checking capabilities using `is <Capability>` is deprecated. Please use `hasCapability<T>()` instead.
2020
2121
---
2222

0 commit comments

Comments
 (0)