diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-14 08:28:01 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-14 08:28:01 -0300 |
commit | f2183a5e09cc55a91b550f0d8f45b45a93d82b29 (patch) | |
tree | 49e072558a9df4c7f66e12eabdf328779716f861 /core/io | |
parent | 534c8e74b9e4990ac1f63ef701330552cecfc28f (diff) |
replaced :var by :Variant in documentation, fixes #2897
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/packet_peer.cpp | 2 | ||||
-rw-r--r-- | core/io/stream_peer.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/io/packet_peer.cpp b/core/io/packet_peer.cpp index f6d526b512..fc9e51f000 100644 --- a/core/io/packet_peer.cpp +++ b/core/io/packet_peer.cpp @@ -127,7 +127,7 @@ Error PacketPeer::_get_packet_error() const { void PacketPeer::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_var"),&PacketPeer::_bnd_get_var); - ObjectTypeDB::bind_method(_MD("put_var", "var:var"),&PacketPeer::put_var); + ObjectTypeDB::bind_method(_MD("put_var", "var:Variant"),&PacketPeer::put_var); ObjectTypeDB::bind_method(_MD("get_packet"),&PacketPeer::_get_packet); ObjectTypeDB::bind_method(_MD("put_packet:Error", "buffer"),&PacketPeer::_put_packet); ObjectTypeDB::bind_method(_MD("get_packet_error:Error"),&PacketPeer::_get_packet_error); diff --git a/core/io/stream_peer.cpp b/core/io/stream_peer.cpp index a76b84bed3..1b39286bf7 100644 --- a/core/io/stream_peer.cpp +++ b/core/io/stream_peer.cpp @@ -405,7 +405,7 @@ void StreamPeer::_bind_methods() { ObjectTypeDB::bind_method(_MD("put_float","val"),&StreamPeer::put_float); ObjectTypeDB::bind_method(_MD("put_double","val"),&StreamPeer::put_double); ObjectTypeDB::bind_method(_MD("put_utf8_string","val"),&StreamPeer::put_utf8_string); - ObjectTypeDB::bind_method(_MD("put_var","val:var"),&StreamPeer::put_var); + ObjectTypeDB::bind_method(_MD("put_var","val:Variant"),&StreamPeer::put_var); ObjectTypeDB::bind_method(_MD("get_8"),&StreamPeer::get_8); ObjectTypeDB::bind_method(_MD("get_u8"),&StreamPeer::get_u8); @@ -419,5 +419,5 @@ void StreamPeer::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_double"),&StreamPeer::get_double); ObjectTypeDB::bind_method(_MD("get_string","bytes"),&StreamPeer::get_string); ObjectTypeDB::bind_method(_MD("get_utf8_string","bytes"),&StreamPeer::get_utf8_string); - ObjectTypeDB::bind_method(_MD("get_var:var"),&StreamPeer::get_var); + ObjectTypeDB::bind_method(_MD("get_var:Variant"),&StreamPeer::get_var); } |