Skip to content

Commit

Permalink
Fix the forty_two.carbon example in getting started
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 carbon-language#4734
  • Loading branch information
danakj committed Dec 23, 2024
1 parent aca862c commit b56c06c
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 b56c06c

Please sign in to comment.