Skip to content

Commit

Permalink
Fix the forty_two.carbon example in getting started (#4736)
Browse files Browse the repository at this point in the history
The Core.Print function has moved into the "io" library, so it needs to
be imported into scope.

Part of issue #4734
  • Loading branch information
danakj authored Dec 26, 2024
1 parent 9290ee2 commit 724fc76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ wget https://github.com/carbon-language/carbon-lang/releases/download/v${VERSION
tar -xvf carbon_toolchain-${VERSION}.tar.gz

# Create a simple Carbon source file:
echo "fn Run() { Core.Print(42); }" > forty_two.carbon
echo "import Core library \"io\"; fn Run() { Core.Print(42); }" > forty_two.carbon

# Compile to an object file:
./carbon_toolchain-${VERSION}/bin/carbon compile \
Expand Down

0 comments on commit 724fc76

Please sign in to comment.