Fix the forty_two.carbon example in getting started (#4736)

The Core.Print function has moved into the "io" library, so it needs to
be imported into scope.

Part of issue #4734
This commit is contained in:
Dana Jansens
2024-12-26 00:37:42 +00:00
committed by GitHub
parent 9290ee2bcf
commit 724fc7623e
+1 -1
View File
@@ -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 \