Skip to content

Commit

Permalink
Fix expression function examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 28, 2019
1 parent 5fa9e2f commit 5a088bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/function_help/json/file_name
Expand Up @@ -3,6 +3,6 @@
"type": "function",
"description": "Returns the name of a file (including the file extension), excluding the directory.",
"arguments": [ {"arg":"path","description":"a file path"}],
"examples": [ { "expression":"base_file_name('/home/qgis/data/country_boundaries.shp')", "returns":"'country_boundaries.shp'"}]
"examples": [ { "expression":"file_name('/home/qgis/data/country_boundaries.shp')", "returns":"'country_boundaries.shp'"}]
}

2 changes: 1 addition & 1 deletion resources/function_help/json/file_path
Expand Up @@ -3,6 +3,6 @@
"type": "function",
"description": "Returns the directory component of a file path. This does not include the file name.",
"arguments": [ {"arg":"path","description":"a file path"}],
"examples": [ { "expression":"base_file_name('/home/qgis/data/country_boundaries.shp')", "returns":"'/home/qgis/data'"}]
"examples": [ { "expression":"file_path('/home/qgis/data/country_boundaries.shp')", "returns":"'/home/qgis/data'"}]
}

2 changes: 1 addition & 1 deletion resources/function_help/json/file_suffix
Expand Up @@ -3,6 +3,6 @@
"type": "function",
"description": "Returns the file suffix (extension) from a file path.",
"arguments": [ {"arg":"path","description":"a file path"}],
"examples": [ { "expression":"base_file_name('/home/qgis/data/country_boundaries.shp')", "returns":"'shp'"}]
"examples": [ { "expression":"file_suffix('/home/qgis/data/country_boundaries.shp')", "returns":"'shp'"}]
}

0 comments on commit 5a088bf

Please sign in to comment.