Skip to content

Commit e895436

Browse files
sternmullpcercuei
authored andcommitted
iiopp: Fixed typo ContextInfo::description()
Signed-off-by: Tilman Blumhagen <[email protected]>
1 parent ac26a23 commit e895436

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bindings/cpp/examples/iiopp-enum.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ void enumerateIioEntities()
7575
for (ContextInfo info : *infoList)
7676
{
7777
cout << " uri: " << quoted(info.uri().c_str()) << endl;
78-
cout << " description: " << quoted(info.desciption().c_str()) << endl;
78+
cout << " description: " << quoted(info.description().c_str()) << endl;
7979
}
8080

8181
cout << "scan block:" << endl;
8282
shared_ptr<ScanBlock> blk = create_scan_block({}, 0);
8383
for (ContextInfo info : *blk)
8484
{
8585
cout << " uri: " << quoted(info.uri().c_str()) << endl;
86-
cout << " description: " << quoted(info.desciption().c_str()) << endl;
86+
cout << " description: " << quoted(info.description().c_str()) << endl;
8787
}
8888
}
8989

bindings/cpp/iiopp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ class ContextInfo
691691
ContextInfo(iio_context_info const * i) : p(i){assert(i);}
692692
operator iio_context_info const * () const {return p;}
693693

694-
cstr desciption() const {return iio_context_info_get_description(p);}
694+
cstr description() const {return iio_context_info_get_description(p);}
695695
cstr uri() const {return iio_context_info_get_uri(p);}
696696
};
697697

0 commit comments

Comments
 (0)