Skip to content

Commit e233cdb

Browse files
Update and rename docs/programHash.md to docs/reference/control/programHash.md
1 parent a965dc2 commit e233cdb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## control.programHash
1+
## programHash
22

3-
The `control.programHash()` function is used to **retrieve a hash of the currently running program**. This hash is generated at compile time by the MakeCode compiler and is embedded in the binary as a static value.
3+
Retrieve a hash of the currently running program. This hash is generated at compile time by the MakeCode compiler and is embedded in the binary as a static value.
44

55
When you call `control.programHash()` in your TypeScript code, the runtime returns the program's hash that was computed during the build process. This hash value is unique to your program and can be used for identification, telemetry, versioning, caching, or classroom scenarios where you need to distinguish between different program builds.
66

0 commit comments

Comments
 (0)