From 46557e7187e7d4a61786bfae92349ae120f3926e Mon Sep 17 00:00:00 2001 From: Christian Ege Date: Thu, 2 Nov 2023 18:13:22 +0100 Subject: [PATCH] doc: fix a typo in the rtcinterrupt example (#3981) docs: fix a typo in the rtcinterrupt example, also provide a link to the interrupt online doc --- src/examples/rtcinterrupt/rtcinterrupt.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/examples/rtcinterrupt/rtcinterrupt.go b/src/examples/rtcinterrupt/rtcinterrupt.go index 7211e4c30b..83d30bcc68 100644 --- a/src/examples/rtcinterrupt/rtcinterrupt.go +++ b/src/examples/rtcinterrupt/rtcinterrupt.go @@ -24,7 +24,9 @@ func main() { // Schedule and enable recurring interrupt. // The callback function is executed in the context of an interrupt handler, - // so regular restructions for this sort of code apply: no blocking, no memory allocation, etc. + // so regular restrictions for this sort of code apply: no blocking, no memory allocation, etc. + // Please check the online documentation for the details about interrupts: + // https://tinygo.org/docs/concepts/compiler-internals/interrupts/ delay := time.Minute + 12*time.Second machine.RTC.SetInterrupt(uint32(delay.Seconds()), true, func() { println("Peekaboo!") })