Skip to content

Commit 5355473

Browse files
authored
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
1 parent a531ed6 commit 5355473

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/examples/rtcinterrupt/rtcinterrupt.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ func main() {
2424

2525
// Schedule and enable recurring interrupt.
2626
// The callback function is executed in the context of an interrupt handler,
27-
// so regular restructions for this sort of code apply: no blocking, no memory allocation, etc.
27+
// so regular restrictions for this sort of code apply: no blocking, no memory allocation, etc.
28+
// Please check the online documentation for the details about interrupts:
29+
// https://tinygo.org/docs/concepts/compiler-internals/interrupts/
2830
delay := time.Minute + 12*time.Second
2931
machine.RTC.SetInterrupt(uint32(delay.Seconds()), true, func() { println("Peekaboo!") })
3032

0 commit comments

Comments
 (0)