From 0fb67d59b2279540d99333ef1ef601e826fdf5d6 Mon Sep 17 00:00:00 2001 From: duerst Date: Mon, 6 Oct 2014 01:15:23 +0000 Subject: [PATCH] tool/downloader.rb: Adjust example in documentation for Downloader.download. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ tool/downloader.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a028fefab7..b9c076f2f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 6 10:15:15 2014 Martin Duerst + + * tool/downloader.rb: Adjust example in documentation for + Downloader.download. + Mon Oct 6 10:07:07 2014 Martin Duerst * lib/unicode_normalize: New folder for Unicode normalization diff --git a/tool/downloader.rb b/tool/downloader.rb index 567d5cebd9..71579c536a 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -50,7 +50,8 @@ class Downloader # modified time. # # Example usage: - # download :unicode, 'UnicodeData.txt', 'enc/unicode/data' + # download 'http://www.unicode.org/Public/UCD/latest/ucd/UnicodeData.txt', + # 'UnicodeData.txt', 'enc/unicode/data' def self.download(url, name, dir = nil, ims = true) file = dir ? File.join(dir, name) : name return true if ims.nil? and File.exist?(file)