aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-04-14 19:50:17 +0000
committerGitHub <noreply@github.com>2020-04-14 19:50:17 +0000
commite870a68893fd0e7a7f544858846fa5e9eac94b4a (patch)
tree8fa520054d97c896e66461bf3be8884f9426652c
parentd77270adc21bed8efe0302953cefc027e7a73042 (diff)
parenta49d51c4d204c8cade8b32c6fea48f6979374ac7 (diff)
Merge #305
305: Updated dead links to SLEEPONEXIT reference on developer.arm.com r=korken89 a=FluenTech Co-authored-by: Peter Taylor <40178570+FluenTech@users.noreply.github.com>
-rw-r--r--book/en/src/by-example/app.md2
-rw-r--r--book/ru/src/by-example/app.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/book/en/src/by-example/app.md b/book/en/src/by-example/app.md
index 5cace37..00e0051 100644
--- a/book/en/src/by-example/app.md
+++ b/book/en/src/by-example/app.md
@@ -70,7 +70,7 @@ so it must run forever.
When no `idle` function is declared, the runtime sets the [SLEEPONEXIT] bit and
then sends the microcontroller to sleep after running `init`.
-[SLEEPONEXIT]: https://developer.arm.com/products/architecture/cpu-architecture/m-profile/docs/100737/0100/power-management/sleep-mode/sleep-on-exit-bit
+[SLEEPONEXIT]: https://developer.arm.com/docs/100737/0100/power-management/sleep-mode/sleep-on-exit-bit
Like in `init`, `static mut` variables will be transformed into `&'static mut`
references that are safe to access.
diff --git a/book/ru/src/by-example/app.md b/book/ru/src/by-example/app.md
index 7dc0812..884257d 100644
--- a/book/ru/src/by-example/app.md
+++ b/book/ru/src/by-example/app.md
@@ -66,7 +66,7 @@ $ cargo run --example init
Когда функция `idle` не определена, рантайм устанавливает бит [SLEEPONEXIT], после чего
отправляет микроконтроллер в состояние сна после выполнения `init`.
-[SLEEPONEXIT]: https://developer.arm.com/products/architecture/cpu-architecture/m-profile/docs/100737/0100/power-management/sleep-mode/sleep-on-exit-bit
+[SLEEPONEXIT]: https://developer.arm.com/docs/100737/0100/power-management/sleep-mode/sleep-on-exit-bit
Как и в `init`, переменные `static mut`будут преобразованы в ссылки `&'static mut`
с безопасным доступом.