mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 13:50:10 +01:00
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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user