mobile: iOS naming and API fixes for generators and Swift (#3408)
* build: modify the iOS namespace to iGeth (gomobile limitation) * mobile: assign names to return types for ObjC wrapper * mobile: use more expanded names for iOS/Swift API
This commit is contained in:
committed by
Felix Lange
parent
3fc7c97827
commit
0fe35b907a
@ -66,7 +66,7 @@ func (pi *PeerInfos) Size() int {
|
||||
}
|
||||
|
||||
// Get returns the peer info at the given index from the slice.
|
||||
func (pi *PeerInfos) Get(index int) (*PeerInfo, error) {
|
||||
func (pi *PeerInfos) Get(index int) (info *PeerInfo, _ error) {
|
||||
if index < 0 || index >= len(pi.infos) {
|
||||
return nil, errors.New("index out of bounds")
|
||||
}
|
||||
|
Reference in New Issue
Block a user