diff --git a/pkg/semtech-loramac/doc.txt b/pkg/semtech-loramac/doc.txt
index b3719dd0dd744dbfd35ff65c0d0820685aeda6f4..35734c16f9fb3edabff498f73a07e4ab7a468170 100644
--- a/pkg/semtech-loramac/doc.txt
+++ b/pkg/semtech-loramac/doc.txt
@@ -7,7 +7,7 @@
  * # Introduction
  *
  * This package provides an API built on top of the
- * [Semtech LoRaMAC-node](github.com/Lora-net/LoRaMac-node) reference
+ * [Semtech LoRaMAC-node](https://github.com/Lora-net/LoRaMac-node) reference
  * implementation of a LoRa network.
  *
  *
@@ -87,6 +87,7 @@
  *     /* 4. join the network */
  *     if (semtech_loramac_join(LORAMAC_JOIN_OTAA) != SEMTECH_LORAMAC_JOIN_SUCCEEDED) {
  *         puts("Join procedure failed");
+ *         return 1;
  *     }
  *     puts("Join procedure succeeded");
  *