From 539bebcc22b0774ad2c607010a85272f2d5f102e Mon Sep 17 00:00:00 2001 From: Steve Phillips Date: Mon, 24 Jun 2019 08:16:01 -0700 Subject: [PATCH] examples/news_fetcher.v: now displays story URL, not just title --- examples/news_fetcher.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/news_fetcher.v b/examples/news_fetcher.v index 1a9a7699e8..3cb1a94107 100644 --- a/examples/news_fetcher.v +++ b/examples/news_fetcher.v @@ -13,6 +13,7 @@ const ( struct Story { title string + url string } struct Fetcher { @@ -36,7 +37,7 @@ fn (f mut Fetcher) fetch() { println('failed to decode a story') exit(1) } - println('#$f.cursor) $story.title') + println('#$f.cursor) $story.title | $story.url') } }