lib/fileutils.rb: [DOC] fix typos and grammar
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f10a13484a
commit
d890fabecf
@ -305,7 +305,7 @@ module FileUtils
|
|||||||
#
|
#
|
||||||
# +src+ can be a list of files.
|
# +src+ can be a list of files.
|
||||||
#
|
#
|
||||||
# # Installing ruby library "mylib" under the site_ruby
|
# # Installing the library "mylib" under the site_ruby directory.
|
||||||
# FileUtils.rm_r site_ruby + '/mylib', :force => true
|
# FileUtils.rm_r site_ruby + '/mylib', :force => true
|
||||||
# FileUtils.cp_lr 'lib/', site_ruby + '/mylib'
|
# FileUtils.cp_lr 'lib/', site_ruby + '/mylib'
|
||||||
#
|
#
|
||||||
@ -315,7 +315,7 @@ module FileUtils
|
|||||||
#
|
#
|
||||||
# # If you want to link all contents of a directory instead of the
|
# # If you want to link all contents of a directory instead of the
|
||||||
# # directory itself, c.f. src/x -> dest/x, src/y -> dest/y,
|
# # directory itself, c.f. src/x -> dest/x, src/y -> dest/y,
|
||||||
# # use following code.
|
# # use the following code.
|
||||||
# FileUtils.cp_lr 'src/.', 'dest' # cp_lr('src', 'dest') makes dest/src, but this doesn't.
|
# FileUtils.cp_lr 'src/.', 'dest' # cp_lr('src', 'dest') makes dest/src, but this doesn't.
|
||||||
#
|
#
|
||||||
def cp_lr(src, dest, noop: nil, verbose: nil,
|
def cp_lr(src, dest, noop: nil, verbose: nil,
|
||||||
@ -381,7 +381,7 @@ module FileUtils
|
|||||||
# Both of +src+ and +dest+ must be a path name.
|
# Both of +src+ and +dest+ must be a path name.
|
||||||
# +src+ must exist, +dest+ must not exist.
|
# +src+ must exist, +dest+ must not exist.
|
||||||
#
|
#
|
||||||
# If +dereference_root+ is true, this method dereference tree root.
|
# If +dereference_root+ is true, this method dereferences the tree root.
|
||||||
#
|
#
|
||||||
# If +remove_destination+ is true, this method removes each destination file before copy.
|
# If +remove_destination+ is true, this method removes each destination file before copy.
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user