зеркало из https://github.com/github/ruby.git
lib/mutex_m.rb: fix example code in documentation
* lib/mutex_m.rb: [DOC] fix invalid example code to make it syntax highlighted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
27295e94f2
Коммит
bca2cdcc0b
|
@ -25,12 +25,12 @@
|
||||||
# obj.extend Mutex_m
|
# obj.extend Mutex_m
|
||||||
#
|
#
|
||||||
# Or mixin Mutex_m into your module to your class inherit Mutex instance
|
# Or mixin Mutex_m into your module to your class inherit Mutex instance
|
||||||
# methods ---remember to call super() in your class initialize method.
|
# methods --- remember to call super() in your class initialize method.
|
||||||
#
|
#
|
||||||
# class Foo
|
# class Foo
|
||||||
# include Mutex_m
|
# include Mutex_m
|
||||||
# def initialize ...
|
# def initialize
|
||||||
# ...
|
# # ...
|
||||||
# super()
|
# super()
|
||||||
# end
|
# end
|
||||||
# # ...
|
# # ...
|
||||||
|
|
Загрузка…
Ссылка в новой задаче