Skip to content

Commit

Permalink
feat(docstrings): eval exceptions on docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ocehugo committed Oct 26, 2020
1 parent b6c449b commit 66cd805
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Util/CellUtils/popFromCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@
% rm_indexes - the indexes where match was found
%
% Examples:
%
% %basic usage
% [newcell] = popFromCell({1,2,3},{2,3});
% assert(isequal(newcell,{1}))
%
% % 2nd arg string
% [newcell] = popFromCell({'a','b'},'b');
% assert(isequal(newcell,{'a'}))
% % raise error for empty 2nd arg
% [newcell] = popFromCell({'a'},'');
% %error, not found in cell.
%
% %raise error for empty 2nd arg
% try;popFromCell({'a'},'');catch;r=true;end
% assert(r)
%
% author: hugo.oliveira@utas.edu.au
%
Expand Down

0 comments on commit 66cd805

Please sign in to comment.