Skip to content

Commit 5d3ad4b

Browse files
aykevldeadprogram
authored andcommitted
all: fix main package in examples
The package with the main function should always have the name main. This was not the case in three packages. This was silently allowed before, but since a TinyGo change (tinygo-org/tinygo#1592) this now results in a linker failure. Perhaps this should result in a better error message in TinyGo. However, the example code also needs to be fixed, so hence this PR.
1 parent 8cb2269 commit 5d3ad4b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/hcsr04/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package hcsr04
1+
package main
22

33
import (
44
"machine"

examples/ssd1331/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package ssd1331
1+
package main
22

33
import (
44
"machine"

examples/ssd1351/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package ssd1351
1+
package main
22

33
import (
44
"machine"

0 commit comments

Comments
 (0)