Skip to content

Commit b38a653

Browse files
committed
Incoporate review suggestions
1 parent 1329670 commit b38a653

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/Manual/Typemaps.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2456,8 +2456,8 @@ <H4><a name="Typemaps_special_macro_typemap">14.4.4.2 $typemap(method, typepatte
24562456
</div>
24572457

24582458
<p>
2459-
The first argument, the typemap method, can look up the keyword argument of a
2460-
typemap by appending a colon and the keyowrd. For example,
2459+
The first argument, the typemap method, can look up the attribute of a
2460+
typemap by appending a colon and the keyword. For example,
24612461
<tt>$typemap(directorin:descriptor, $type)</tt> would be replaced by <tt>"D"</tt> if <tt>type</tt> is a <tt>double</tt>.
24622462
</p>
24632463
<p>

Source/Swig/typemap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,7 @@ static void replace_embedded_typemap(String *s, ParmList *parm_sublist, Wrapper
21052105
Printf(stdout, " Containing: %s\n", dtypemap);
21062106
Delete(dtypemap);
21072107
}
2108-
found_colon = Strstr(tmap_method, ":");
2108+
found_colon = Strchr(tmap_method, ':');
21092109
if (found_colon) {
21102110
String *temp_tmap_method = NewStringWithSize(Char(tmap_method), found_colon - Char(tmap_method));
21112111
Swig_typemap_attach_parms(temp_tmap_method, to_match_parms, f);

0 commit comments

Comments
 (0)