From 724fc7623ef483a2c67e73e74d7a2460470d0b5a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 25 Dec 2024 19:37:42 -0500 Subject: [PATCH] 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 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5795b9f38382..22e789e5be94 100644 --- a/README.md +++ b/README.md @@ -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 \