diff --git a/src/guide/receive_payment.md b/src/guide/receive_payment.md
index efca13b7..c94040f4 100644
--- a/src/guide/receive_payment.md
+++ b/src/guide/receive_payment.md
@@ -61,7 +61,7 @@ try {
```dart
-{{#include ../../snippets/dart_snippets/lib/receive_payment.dart:receive_payment}}
+{{#include ../../snippets/dart_snippets/lib/receive_payment.dart:receive-payment}}
```
diff --git a/src/guide/static_channel_backup.md b/src/guide/static_channel_backup.md
index 2677d72c..e2037208 100644
--- a/src/guide/static_channel_backup.md
+++ b/src/guide/static_channel_backup.md
@@ -60,7 +60,7 @@ try {
```dart
-{{#include ../../snippets/dart_snippets/lib/static_channel_backup.dart:static_channel_backup}}
+{{#include ../../snippets/dart_snippets/lib/static_channel_backup.dart:static-channel-backup}}
```