Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: tools/gn/function_rebase_path.cc

Issue 1030553002: tools/gn: fix rebase_path example (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/function_rebase_path.cc
diff --git a/tools/gn/function_rebase_path.cc b/tools/gn/function_rebase_path.cc
index 3cf33dd4cbe2a2d917efb1ad904df9df2090e4e5..0cc32524103063196769a7d4da48ba45cf7d803b 100644
--- a/tools/gn/function_rebase_path.cc
+++ b/tools/gn/function_rebase_path.cc
@@ -183,7 +183,7 @@ const char kRebasePath_Help[] =
" # Typical usage for converting to the build directory for a script.\n"
" action(\"myscript\") {\n"
" # Don't convert sources, GN will automatically convert these to be\n"
- " # relative to the build directory when it contructs the command\n"
+ " # relative to the build directory when it constructs the command\n"
" # line for your script.\n"
" sources = [ \"foo.txt\", \"bar.txt\" ]\n"
"\n"
@@ -194,7 +194,7 @@ const char kRebasePath_Help[] =
" rebase_path(\"//mything/data/input.dat\", root_build_dir),\n"
" \"--rel\",\n"
" rebase_path(\"relative_path.txt\", root_build_dir)\n"
- " ] + sources\n"
+ " ] + rebase_path(sources, root_build_dir)\n"
" }\n";
Value RunRebasePath(Scope* scope,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698