From 02f965ef093ae7195e2ec1b346233e2e6175f53b Mon Sep 17 00:00:00 2001 From: Peter Taylor <40178570+FluenTech@users.noreply.github.com> Date: Mon, 13 Apr 2020 09:32:49 -0600 Subject: [PATCH 1/2] correct SLEEPONEXIT reference link --- book/en/src/by-example/app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/en/src/by-example/app.md b/book/en/src/by-example/app.md index 5cace3733c..00e0051987 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. From a49d51c4d204c8cade8b32c6fea48f6979374ac7 Mon Sep 17 00:00:00 2001 From: Peter Taylor <40178570+FluenTech@users.noreply.github.com> Date: Mon, 13 Apr 2020 09:39:03 -0600 Subject: [PATCH 2/2] fix SLEEPONEXIT reference link in Russian version --- book/ru/src/by-example/app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/ru/src/by-example/app.md b/book/ru/src/by-example/app.md index 7dc08127a1..884257dd26 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` с безопасным доступом.