From e60b5004b7ff6c9fa28925cab8aa86e19ef5246e Mon Sep 17 00:00:00 2001 From: Alexander Iljin Date: Thu, 5 Oct 2017 19:38:44 +0300 Subject: [PATCH] talks: fix the printf examples Reverse the order of parameters. --- extra/talks/galois-talk/galois-talk.factor | 4 ++-- extra/talks/google-tech-talk/google-tech-talk.factor | 4 ++-- extra/talks/vpri-talk/vpri-talk.factor | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/extra/talks/galois-talk/galois-talk.factor b/extra/talks/galois-talk/galois-talk.factor index ba0e88842c..04392787cc 100644 --- a/extra/talks/galois-talk/galois-talk.factor +++ b/extra/talks/galois-talk/galois-talk.factor @@ -172,8 +172,8 @@ CONSTANT: galois-slides { { $link POSTPONE: EBNF: } ": a complex parsing word" } "Implements a custom syntax for expressing parsers: like OMeta!" { "Example: " { $vocab-link "printf-example" } } - { $code "\"vegan\" \"cheese\" \"%s is not %s\\n\" printf" } - { $code "5 \"Factor\" \"%s is %d years old\\n\" printf" } + { $code "\"cheese\" \"vegan\" \"%s is not %s\\n\" printf" } + { $code "\"Factor\" 5 \"%s is %d years old\\n\" printf" } } { $slide "Example: simple web browser" { $vocab-link "webkit-demo" } diff --git a/extra/talks/google-tech-talk/google-tech-talk.factor b/extra/talks/google-tech-talk/google-tech-talk.factor index 89d19e94fa..4bfc5726c2 100644 --- a/extra/talks/google-tech-talk/google-tech-talk.factor +++ b/extra/talks/google-tech-talk/google-tech-talk.factor @@ -335,8 +335,8 @@ CONSTANT: google-slides { { $link POSTPONE: EBNF: } ": a complex parsing word" } "Implements a custom syntax for expressing parsers" { "Example: " { $vocab-link "printf-example" } } - { $code "\"vegan\" \"cheese\" \"%s is not %s\\n\" printf" } - { $code "5 \"Factor\" \"%s is %d years old\\n\" printf" } + { $code "\"cheese\" \"vegan\" \"%s is not %s\\n\" printf" } + { $code "\"Factor\" 5 \"%s is %d years old\\n\" printf" } } { $slide "Input/output library" "One of Factor's strongest points: portable, full-featured, efficient" diff --git a/extra/talks/vpri-talk/vpri-talk.factor b/extra/talks/vpri-talk/vpri-talk.factor index 62f4f6caca..b7201228ca 100644 --- a/extra/talks/vpri-talk/vpri-talk.factor +++ b/extra/talks/vpri-talk/vpri-talk.factor @@ -192,8 +192,8 @@ CONSTANT: vpri-slides { { $link POSTPONE: EBNF: } ": a complex parsing word" } "Implements a custom syntax for expressing parsers: like OMeta!" { "Example: " { $vocab-link "printf-example" } } - { $code "\"vegan\" \"cheese\" \"%s is not %s\\n\" printf" } - { $code "5 \"Factor\" \"%s is %d years old\\n\" printf" } + { $code "\"cheese\" \"vegan\" \"%s is not %s\\n\" printf" } + { $code "\"Factor\" 5 \"%s is %d years old\\n\" printf" } } { $slide "Example: simple web browser" { $vocab-link "webkit-demo" }