mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/win32ole/sample/olegen.rb: Fix typo
* ext/openssl/ossl_asn1.c: [DOC] Fix typo * lib/webrick/accesslog.rb: ditto * template/yarvarch.ja: ditto s/recieve/receive/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									a4cbd6412a
								
							
						
					
					
						commit
						e1db3605fd
					
				
					 4 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -1810,7 +1810,7 @@ Init_ossl_asn1()
 | 
			
		|||
     * == OpenSSL::ASN1::ObjectId
 | 
			
		||||
     *
 | 
			
		||||
     * While OpenSSL::ASN1::ObjectId.new will allocate a new ObjectId, it is
 | 
			
		||||
     * not typically allocated this way, but rather that are recieved from
 | 
			
		||||
     * not typically allocated this way, but rather that are received from
 | 
			
		||||
     * parsed ASN1 encodings.
 | 
			
		||||
     *
 | 
			
		||||
     * === Additional attributes
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,7 @@ require 'win32ole'
 | 
			
		|||
class WIN32COMGen
 | 
			
		||||
  def initialize(typelib)
 | 
			
		||||
    @typelib = typelib
 | 
			
		||||
    @reciever = ""
 | 
			
		||||
    @receiver = ""
 | 
			
		||||
  end
 | 
			
		||||
  attr_reader :typelib
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -87,7 +87,7 @@ class WIN32COMGen
 | 
			
		|||
  end
 | 
			
		||||
 | 
			
		||||
  def generate_method_body(method, disptype, types=nil)
 | 
			
		||||
    "    ret = #{@reciever}#{disptype}(#{method.dispid}, [" +
 | 
			
		||||
    "    ret = #{@receiver}#{disptype}(#{method.dispid}, [" +
 | 
			
		||||
    generate_args(method).gsub("=nil", "") +
 | 
			
		||||
    "], [" +
 | 
			
		||||
    generate_argtypes(method, types) +
 | 
			
		||||
| 
						 | 
				
			
			@ -303,10 +303,10 @@ STR
 | 
			
		|||
    if klass.ole_type == "Class" &&
 | 
			
		||||
       klass.guid &&
 | 
			
		||||
       klass.progid
 | 
			
		||||
      @reciever = "@dispatch."
 | 
			
		||||
      @receiver = "@dispatch."
 | 
			
		||||
      define_class(klass, io)
 | 
			
		||||
    else
 | 
			
		||||
      @reciever = ""
 | 
			
		||||
      @receiver = ""
 | 
			
		||||
      define_module(klass, io)
 | 
			
		||||
    end
 | 
			
		||||
    generate_constants(klass, io)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -85,7 +85,7 @@ module WEBrick
 | 
			
		|||
    # %q:: Request query string
 | 
			
		||||
    # %r:: First line of the request
 | 
			
		||||
    # %s:: Request status
 | 
			
		||||
    # %t:: Time the request was recieved
 | 
			
		||||
    # %t:: Time the request was received
 | 
			
		||||
    # %T:: Time taken to process the request
 | 
			
		||||
    # %u:: Remote user from auth
 | 
			
		||||
    # %U:: Unparsed URI
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -153,7 +153,7 @@ Lisp の処理系などをかんがえると、わざわざブロックローカ
 | 
			
		|||
側に辿れば必ずたどり着くことができるからです(つまり、lfp は必要ない)。
 | 
			
		||||
 | 
			
		||||
しかし、Ruby ではいくつか状況が違います。まず、メソッドローカルな情報が
 | 
			
		||||
あること、具体的にはブロックとself(callee からみると reciever)です。こ
 | 
			
		||||
あること、具体的にはブロックとself(callee からみると receiver)です。こ
 | 
			
		||||
の情報をそれぞれのフレームにもたせるのは無駄です。
 | 
			
		||||
 | 
			
		||||
また、Ruby2.0 からはブロックローカル変数はなくなります(ブロックローカル
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue